-->
Page 1 of 1

....or is it me

PostPosted: Fri Jan 06, 2017 12:12 am
by flagtrax
One of my projects last year was to build a simple HTTP server for relay control. I used one of the common examples to start out. Long story short, after a learning curve, all went well. I wanted to use that same basic code for a current project, and ran into this situation. At that time I was using Arduino IDE 1.6.4 I'll place a snippet here that I refer to:
Code: Select all
  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
  }


This tests for connection, and outputs "." to the serial monitor until connection. As stated this worked in the past. Since then I updated to IDE 1.8.0 and I loaded the server code and it sits in the above loop forever. If I check my wifi monitor, the module has indeed connected with a valid IP address.
But the program does not know it has connected. I reverted back to IDE 1.6.8 with the same results. If I "rem" out all but the delay, (remove the while statement) the server runs fine. Note, that the above snippet is only part of the total wifi setup, and is a standard from this site.
https://github.com/esp8266/Arduino/blob/master/doc/esp8266wifi/server-examples.md
Has anyone else seen this? Or is it me.......

Re: ....or is it me

PostPosted: Fri Jan 06, 2017 5:43 am
by schufti
it's not the version of the ide that troubles you, it is the version of the esp8266 board manager.
open the board manager and install a older version 2.0.0 or 2.1.0 probably...

All of the versions have their drawbacks with wifi. Some will connect reliably but burn your flash by (re)writing the credentials on every connect, some return "connected" even if connection lost ....

Re: ....or is it me

PostPosted: Mon Jan 09, 2017 1:03 pm
by flagtrax
Thanks so much. I reverted back to 2.0, and as you predicted the sketch ran fine :D . So is there a place where all the different "short-comings" are documented :?:

Re: ....or is it me

PostPosted: Mon Jan 09, 2017 4:13 pm
by schufti
in an orderly manner ... not that I would know of.
I just follow the issues on git and draw my conclusions.