Hi,
I am having an issue with WPS connections.
I can establish a connection using the following code
SlSecParams_t secParams;
long lRetVal = -1;
secParams.Key = NULL;
secParams.KeyLen = 0;
secParams.Type = SL_SEC_TYPE_WPS_PBC;
lRetVal = sl_WlanConnect("1", 1, 0, &secParams,0);
This works well, I run this via a button press.
However, if I press run this a second time, e.g. to connect to a different router it connects instantly to the same router, without the router being in WPS mode.
If I press it for a third time then it disconnects and I will have to restart the device to get it to connect again.
Ideally I would like it to try WPS connection for a minute or so, if it doesn't connect then it should go back to the previous connection.
Can anyone help.