Say, for example, I have a BLE peripheral programmed with S110 on nRF51822. When an Android app connects to it as a BLE GAP central(and becomes GATT client), can any data be sent with the connection packet so that I can perform an authentication?
Say, for example, I have a BLE peripheral programmed with S110 on nRF51822. When an Android app connects to it as a BLE GAP central(and becomes GATT client), can any data be sent with the connection packet so that I can perform an authentication?
No. The BLE connect process doesn't have any extra data with it, it's just a connect. You can whitelist addresses so that only certain centrals can connect, you can require authentication for the characteristics so that after connection you nee to authenticate to do anything. When you get the connect message there's a little information about peer addresses you can use but nothing else.
@Rifat I do not mean app, I mean device, i.e. the Android device, since the Android device and its BTLE Stack is what controls the peer address.
@Rifat I do not mean app, I mean device, i.e. the Android device, since the Android device and its BTLE Stack is what controls the peer address.