SendAccelerometerDataOverBle

This example streams the raw accelerometer data from the BMA280 acceleration sensor via BLE. A companion app such as the BLE scanner for iOS/Android is required. Open the BLE scanner application, search for near Bluetooth device, and select the XDK_BLE_APP device. Once the device connects, select the write button. Then send start as a message to the XDK, so that the streaming of data begins and send end to the XDK when you want to end the streaming of data.

Image

Output

When running the program keep the USB plugged to the PC. The USB will output a string of data, which you can read to indicate correct functionality.

Image