My question may seem silly, I did not so long ago been programming NRF51822 S130. I use examples experimental_ble_app_blinki. I want to get the module ID smartphone when connected. There is such a function?
My question may seem silly, I did not so long ago been programming NRF51822 S130. I use examples experimental_ble_app_blinki. I want to get the module ID smartphone when connected. There is such a function?
It depends on the address type. See this for more information.
If the central device (smart phone) uses public address or random static address you can just take the extract the address when you get the BLE_GAP_EVT_CONNECTED event, and put it into the whitelist.
If the central device (smart phone) uses a Private Resolvable address you need to bond for it to share the IRK that resolves the address.
If the central device (smart phone) uses a private non-resolvable address it doesn't really make sense to put it into a whitelist.
It depends on the address type. See this for more information.
If the central device (smart phone) uses public address or random static address you can just take the extract the address when you get the BLE_GAP_EVT_CONNECTED event, and put it into the whitelist.
If the central device (smart phone) uses a Private Resolvable address you need to bond for it to share the IRK that resolves the address.
If the central device (smart phone) uses a private non-resolvable address it doesn't really make sense to put it into a whitelist.