Is there any example about the dongle nrf52840 act as a central? Is that possible? In that case for a ble connection between dongle and board a service does to be create on the peripheral or in the central part? Or both?..
Thanks a lot for answers!!
Is there any example about the dongle nrf52840 act as a central? Is that possible? In that case for a ble connection between dongle and board a service does to be create on the peripheral or in the central part? Or both?..
Thanks a lot for answers!!
Hi
There should be no problem using the nRF52840 dongle as a central. This tutorial might help you setting it up. As for the second part of your question I am not sure I understand. Both the dongle and a development kit are able to act as both central and peripheral, if that is what you are wondering.
Best regards
Simon
ok,thanks..but if i want to create my own service have I to define it in the script of the central and in that of pheripheral or only one of this?.
Before i create a service on the dk as periphereal and i use it with nrfconnect and it's was ok.
If now i would program the dongle instead what should i do? program the dongle as a central and define again the service on it or it's enaph if the service is define only in the periphereal part?
Hi
I am struggling to understand what you mean by "service". Do you mean the application you are making?
Best regards
Simon
yes ,i think so. I created the services for the peripheral part following https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial
but what i have to do for the central one(dongle)?
Hi
Yes, you will have to program both devices with the service application. The peripheral you can make as in the BLE service tutorial.
As for the central I recommend starting with for example the SDK\examples\ble_central\ble_app_uart_c, and modifying it so that it knows how to process the services provided by your peripheral. You can follow the steps under Service Discovery in the BLE central tutorial for how to register and discover services provided by peripheral devices.
Best regards,
Simon