The BLE library supports Nordic Semiconductor’s UART/Serial service out of the box. This means the Energia library should be over the air compatible with existing Aruduino sketches and mobile apps based on this service.
To demo this sample application, we recommend using Adafruit’s Bluefruit LE Connect App
Enable this service by calling ble.serial().
Inside the Serial init function, the library will setup the Serial service as well as its TX and RX characteristics. It will also setup the device to advertise the availability of the serial service so that the Adafruit app recognizes it as serial capable. From there you can write and read strings to/from these characteristics using the the Adafruit Bluefruit LE app which also supports the Serial Service.
A summary of the service setup by the ble.serial() can be seen in the table below serial_service_table
Running the Demo Load the sketch on the MSP432 using Energia Open the Bluefruit app on your mobile device Search for devices, you can filter on those that have the UART service if you’d. The Energia device will advertise as Serial available. adv_scrn
Once connected, explore the services, notice the UART TX and RX Chars. service_srn Move to the UART tab, and you will notice that anything typed into the serial monitor appears on your phone and vice versa uart_srnserial_monitor
The SerialOverBLE app also supports the Color Picker (color wheel that controls RGB LEDs on MSP LP) and Control Pad (D pad functionality over BLE) features. ctrl_pad_app_adafruitcontrol_padcolor_whl_adafruittri_color_led