Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
The Bluetooth PIN can be used to authenticate two Bluetooth devices with each other during the creation of a mutual link key via the pairing procedure. The PIN may be used in the pairing procedure to generate the initial link key. The PIN may be entered on the UI level during the connection with a device that has the ability to enter digits.
This article explains how to set the PIN using a sample application. A demo code based on SPP[BJ1] is attached with this KBA.
1. Download the attachment, unzip it, and copy the btm_init.h file to your project.
2. Include the header file btm_init.h in the WICED® Studio SDK.
3. Set the security mode to BTM_SEC_MODE_SERVICE in the application callback function.
btm_cb.security_mode = 2;
4. In the application callback function, add the following functions to disable simple pairing and secure connection host support.