Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

which example to use for a Peripheral Server GATT ?

In SDK5, I found 2 examples : a server GATT in Central & a client GATT in Peripheral...

But in my case my device (nrf52840 board) needs to be :

  • a peripheral : slave IoT device advertising and notifying but not connecting
  • server Gatt : sending sensors data to the gateway as central (connecting) and client Gatt (write/read data to/from device)

If I took the server gatt example in central, do I need to transform it for running as server gatt peripheral ?

thks

Parents
  • I think the "GATT Service Client Example Application" in examples\ble_peripheral\ble_app_gatts_c is a Peripheral / slave because it's doing advertising_start() in main(). Then, it's doing a ble_db_discovery_start() to discover peer's services, which means that is a Client GATT to get the server attributes uuid table from the remote peer or not ?

Reply
  • I think the "GATT Service Client Example Application" in examples\ble_peripheral\ble_app_gatts_c is a Peripheral / slave because it's doing advertising_start() in main(). Then, it's doing a ble_db_discovery_start() to discover peer's services, which means that is a Client GATT to get the server attributes uuid table from the remote peer or not ?

Children
No Data
Related