This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Many android phone do not support simple secure pair, so i download sppdemo with default and run it with server mode.when android phone pair with kit, i must input pin code like 0000 ,and console reponse like:
PIN Code Authentication Response: Authentication not in progress. The Pairing response is not happening in my console.
Hi,
char passcode[] = "0000";
Parameter_t code={passcode,1};
ParameterList_t codelist = {1,{passcode,1}};
Then add the following below under "case aPINCodeRequest":
PINCodeResponse(&codelist);
I have implemented the above code to set the passcode for pairing the device. but the code is not working for me and also the passcode is not accepting. The error is showing that "Could not pairing"... Anyone please help me on this..
Try not using GAP_Event_Callback to trigger the PINCodeResponse.
When you get the event, use it to trigger another thread (e.g. using message queue) that will call the PINCodeResponse().
Thanks for the quick reply.
How to trigger the Callback function, can you please explain me.
what event are you getting? I thought your first message said you call the PINCodeResponse when getting this event.
Can you show the terminal output?
You need to set the device (see SetDiscoverabilityMode, SetConnectabilityMode, SetPairabilityMode) to enable other devices to find and connect to it. Then (upon pairing) you'll get the event callback (PASSKEY or PINCODE request) where you should trigger the relevant response.
check the BluetopiaCoreAPI.pdf in the documentation folder - it gives a good overview of this.
Hello Kobi,
Can you please give me some example, how to set the device in (SetDiscoverabilityMode, SetConnectabilityMode, SetPairabilityMode) to enable other devices to find and connect to it. And also where I should trigger the relevant response(PASSKEY or PINCODE Rquest).
Thanks in advance,
.