Description
I have tried to make use of SSP and setup ESP32 device as slave to accept binding request from smart phones, PCs, etc. However I figure out that the SSP implementation is incomplete. Normally the binding process involves the Smart Phone initiate a binding request with a key code. User can verify the code in the ESP32 device screen, and select the desire action (either accept or reject) in the ESP32 device.
However, just make use of the BluetoothSerial API cannot make the job done. The API seems missing some callbacks mechanism for the binding process.
I need to copy and modify the BluetoothSerial source code to make this works, and I think I can contribute my work to the source as a pull request. So, if I do this, is there anybody who will review the code and merge it?
Activity
[-]SSP Functionality imcomplete[/-][+]SSP Functionality Incomplete[/+]me-no-dev commentedon Dec 11, 2020
Yup :) please make the pull request :)
richardclli commentedon Dec 14, 2020
One thing in the source code that I am not sure, but I changed it anyway. This is it needs to verify if it is master mode before registering the gap callback. Now I change the checking so that the gap callback will present either in master and slave mode and I need some events in the gap callback to be handled for SSP authentication.
richardclli commentedon Dec 14, 2020
I have created the pull request, please review the code, thanks.
BluetoothSerial SSP Authentication with callbacks (#4634)