How does the DA14580 act as a host to initiate pairing requests and save data and enable link encryption? I tested in the official sps_host routine that app_easy_security_request() could not successfully issue a pairing request. After the function call, I used Dongle to capture the packet and found that the DA14580 did not issue a pairing request.
Does the DA14580 do the relevant routines for the host to issue a pairing request?
Another: the connection from the opportunity to issue Security_Request, but I can not receive any callback on the DA14580, how can I receive the Security_Request from this slave?
我怎么能使LE加密后我的爸爸吗iring is successful? Is there a relevant code?
Device:
Hi Dionysus,
Since your device is acting as a central, be aware that a central cannot request security from a peripheral. If the peripheral implements security the central will understand it by the following ways:
Please check the ble_app_security example of the SDK. Encryption is automatically enabled when the Authentication (AUTH) is enabled on the characteristic. Also, you can have encryption on each characteristic when the Un-authentication (UNAUTH) is enabled. For more information about the security, please read theTutorial 5 : Pairing , Bonding & Securityfrom our support page. Regarding the dynamically switch, let me check and I will get back to you as soon as possible. Be aware that we don’t have any example with this functionality.
Thanks, PM_Dialog