-->
Page 1 of 1

WiFi.disconnect() cause a crash !

PostPosted: Fri Nov 04, 2016 7:02 am
by Vorms
Hello,
Very new with ESP2866.
I receive a D1 card (not D1R2).
I use the Arduino ide
I try the example in gitub for wifi scan at address:
https://github.com/esp8266/Arduino/blob ... FiScan.ino

I find that the instruction Wifi.disconnect() cause a crash of the system.

Many thanks for your help.
Best regards

Thierry Vorms :roll:

Re: WiFi.disconnect() cause a crash !

PostPosted: Fri Nov 04, 2016 10:50 pm
by sfranzyshen
Vorms wrote:Hello,
Very new with ESP2866.
I receive a D1 card (not D1R2).
I use the Arduino ide
I try the example in gitub for wifi scan at address:
https://github.com/esp8266/Arduino/blob ... FiScan.ino

I find that the instruction Wifi.disconnect() cause a crash of the system.

Many thanks for your help.
Best regards

Thierry Vorms :roll:


works fine with : Arduino 1.6.8 / 2.3.0 - Generic ESP8266 512k (128k spiffs)
also works fine if you REM out that line ...
//WiFi.disconnect();

Re: WiFi.disconnect() cause a crash !

PostPosted: Sat Nov 05, 2016 6:09 am
by Vorms
Exact,
But there is perhaps a bug in the API wifi.disconnect() !
May be it should be corrected