Hi, Dialog
I am trying to implement the reconnect feature based on DA14583. My application requirement is that when the DA14583 lose connection to mobile phone, then it will start to reconnect and keep the connection as stable as possible.
因此,有参考代码来帮助这个吗?米y SDK is 5.0.3.
Thanks a lot.
Device:
Hi caiziee,
The connection request is a command that the phone will issue and not the peripheral, so its not up to peripheral to reconnect but it depends on the central. The peripheral can just accept the connection request issued by your phone. So from the peripheral side all you can do is just accept the connection from the phone, and just make sure that the central was the one that you were connected last time via checking the keys that were generated during the pairing procedure (if you would like to involve pairing to your system). Regarding the example, there is a security example ble_app_security that can guide you through the pairing procedure.
Thanks MT_dialog
Thanks for your reply. It really did help to us. ;-)
By the way, and is it required or optional to use the bonding procedure? I assume bonding can speed up the paring process.
Hi caiziee,
No, the pairing process is optional and depends on the application, if your system requires security then you can implement it. If you dont use security (you dont use the security feature of the BLE) there will be no pairing between the devices thus there will be no bond, they will be just connected.
Thanks MT_dialog