I need use NUS services (UART over BLE) What file and functions should I use?
I need use NUS services (UART over BLE) What file and functions should I use?
That depends on what "side" of GATT link are you looking for;) BLE is asymmetric on pretty much every layer and NUS need GATT Client and GATT Server. ble_nus
is GAP Peripheral + GATT Server (usual "embedded" option, that's why it is kind of "default"), ble_nus_c
is GAP Central + GATT Client option (usually handled by device with higher power budget = bigger battery).
Yes. I would highly recommend to take two nRF5x boards and run NUS on both sides (ble_nus
and ble_nus_c
), test how it works and see where the Tx/Rx data flow (= point you will probably customize).
Yes. I would highly recommend to take two nRF5x boards and run NUS on both sides (ble_nus
and ble_nus_c
), test how it works and see where the Tx/Rx data flow (= point you will probably customize).