WiFi connection -> Connected but not always
Posted: Thu Oct 15, 2015 10:03 am
So, I'm starting to do some development using the Sming framework, and I have this rather common issue.
The WifiStation.waitConnection(connectOk, 30, connectFail) function will call the connectOK function when it successfully connects. On that function I do a standard HTTP request. So far so good and most of the times works fine.
But what the behaviour that I have is that some times the first HTTP request fails, and the following ones succeed....
So it seems that even after connectOk is called the Wifi connection is not completely established.... but this does not happen always.
Any ideas?
The WifiStation.waitConnection(connectOk, 30, connectFail) function will call the connectOK function when it successfully connects. On that function I do a standard HTTP request. So far so good and most of the times works fine.
But what the behaviour that I have is that some times the first HTTP request fails, and the following ones succeed....
So it seems that even after connectOk is called the Wifi connection is not completely established.... but this does not happen always.
Any ideas?