NodeMCU suddenly cannot connect to intenet | ESP Wi-Fi | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
NodeMCU suddenly cannot connect to intenet
No permission to create posts
June 25, 2018
2:50 am
Avatar
panoss
New Member
Members
Forum Posts: 4
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline

My NodeMCU was, till yesterday, very easilly connecting to the internet.
Untill I installed a library, Thermistor_library-master.
From that moment the NodeMCU can no way connect to the internet!!!

I removed the library (deleted the library 's folder from C:\Users\Pan\Documents\Arduino), I tried previous sketches that worked 100% in the past, but NOTHING!
It cannot connect.
I even tried another (unused) NodeMCU and the same thing happens!
I 'm desperate, I don't know what to do!
Any help is welcome.

(I have made no changes to the router 's credentials or any of it 's settings)

June 25, 2018
10:09 am
Avatar
panoss
New Member
Members
Forum Posts: 4
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline

I replaced this code:

WiFi.begin(ssid, password);

with this:

WiFi.disconnect(true);
WiFi.setAutoConnect(false);
WiFi.setPhyMode(WIFI_PHY_MODE_11G);
WiFi.begin(ssid, password);
WiFi.printDiag(Serial);
Serial.println(WiFi.getPhyMode());

and...got connected!!!

Then I returned to the old code...and works fine too!!!

I have no idea why the use of the previous code 'cured' it.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457