Hi Dialog,
I am developing my bonding function based on BMS project code. In normal case, the peripheral (my device) will generate a passkey, and then the passkey should be keyed in in mobile phone APP to complete the bonding process. If my device does not have screen to display the passkey, I would like to set specific numbers,eg, 000000 or 123456, as the passkey. How to implement this by calling the API of SDK? Is it possible? thanks
Device:
Hi nigelyang,
Please check the ble_mgr_gap.c file and you will find that passkey = rand() % 1000000;. You should change the passkey into 000000 or 123456.
Thanks, PM_DIalog