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).
Do you have clear understanding what will be both sides of your NUS
link and what GAP&GATT properties they support? Also consequences on power consumption and co-existence and interworking with other Profiles and Services (if any of these devices is multiapplicational)?
Do you have clear understanding what will be both sides of your NUS
link and what GAP&GATT properties they support? Also consequences on power consumption and co-existence and interworking with other Profiles and Services (if any of these devices is multiapplicational)?