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.
@David Edwin. "If you can control the address that is used by your peer device to establish the connection, then you can have more control of the situation." By peer device, you mean the mobile app that'll connect to the end device as a GATT client, right? So, if I can control it, I can use it to authenticate, even during first connection?
@David Edwin. "If you can control the address that is used by your peer device to establish the connection, then you can have more control of the situation." By peer device, you mean the mobile app that'll connect to the end device as a GATT client, right? So, if I can control it, I can use it to authenticate, even during first connection?