Hi, This is M.Irfan. I want to send data (collected by mpu6050 sensor) using Bluetooth in my cellphone and want to save it. Can you help me with some example code of sending data using ble. would appreciate your help. Thanks in advance.
Hi, This is M.Irfan. I want to send data (collected by mpu6050 sensor) using Bluetooth in my cellphone and want to save it. Can you help me with some example code of sending data using ble. would appreciate your help. Thanks in advance.
At the end of the day, the whole point of BLE is about "sending data" - so all of the BLE examples in the SDK cover that in some form or another.
So take a look through the available examples, and see which sounds closest to your requirements:
For a general example of transferring arbitrary data, look at the Nordi UART Service (NUS):
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html
The "UART" in the name does not mean that it has anything specifically to do with the hardware UART peripheral - rather, like a UART, it allows you to send any arbitrary data.
On the phone, you can use nRF Connect to get you started:
https://www.nordicsemi.com/?sc_itemid=%7B41FF7A0B-B565-420A-95B7-B32122B5D3AD%7D
Android App development is beyond the scope of this forum.
Start here:
https://developer.android.com/guide/topics/connectivity/bluetooth-le
At the end of the day, the whole point of BLE is about "sending data" - so all of the BLE examples in the SDK cover that in some form or another.
So take a look through the available examples, and see which sounds closest to your requirements:
For a general example of transferring arbitrary data, look at the Nordi UART Service (NUS):
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html
The "UART" in the name does not mean that it has anything specifically to do with the hardware UART peripheral - rather, like a UART, it allows you to send any arbitrary data.
On the phone, you can use nRF Connect to get you started:
https://www.nordicsemi.com/?sc_itemid=%7B41FF7A0B-B565-420A-95B7-B32122B5D3AD%7D
Android App development is beyond the scope of this forum.
Start here:
https://developer.android.com/guide/topics/connectivity/bluetooth-le