Hi,
For example: In scan and connected as peripheral at same time. When disconnect event happen, how do I know who is the trigger, the center or peripheral?
Thanks.
Hi,
For example: In scan and connected as peripheral at same time. When disconnect event happen, how do I know who is the trigger, the center or peripheral?
Thanks.
If you look at ble_gap_evt_t you can see that the disconnect event contains a conn_handle that tells you which connection the disconnect event belongs to.
Follow your hints, I got "connected.role".
Thanks.
Follow your hints, I got "connected.role".
Thanks.