Chat freely about anything...

User avatar
By Oldmicroguy
#56717 I have a new NodeMCU module that will download and run sketches that do not have any WiFi functions. I am using sketches that work perfectly on other modules.

I have read that if a "virgin" ESP8266 is programmed via ArduinoIDE and if that sketch does not use any of the WiFi library functions, then the ESP8266 will be running in RF-disabled mode. I don’t know if this is true or not. And, if true, how to correct the situation.

It seems unlikely that the module is defective. WiFi is the only thing that doesn’t work correctly. I believe it is a software problem. Any ideas?

Oldmicroguy
User avatar
By carl
#56739 Can you post your code here?

I think it is some code problem. I have been using Arduino IDE for some time and have not encountered same problem as yours.

This might help. I have tried this one and it works for me.
[url]http://thinkingparts.blogspot.com/2015/08/home-automation-diy-version-internet_13.html[/url]


Let the Internet of things Begin!!!
User avatar
By Oldmicroguy
#56768 As I said in my first post I am using various sketches that work correctly on a half dozen different modules. With this new NodeMCU I cannot get it to connect to the WiFi but it will do everything else it should. I suppose it could be hardware; maybe a bad solder joint between the ESP8266 chip and the antenna. But that seems to be unlikely as everything else is OK. I think it is software. The ESP8266 has something called persistent values. Like a EEPROM section in other chips which is unchanged even when new sketches are loaded. I know that SSID and password are saved that way, for example. I think there is something else screwing it up but I don’t know what it is.

I think the problem is related to how brand new, virgin ESP8266's are first programmed with Arduino

Oldmicroguy
User avatar
By flagtrax
#56769 I've not heard of any "virgin" modules being pre programmed with anything but AT commands, but then I don't use the "nodeMCU" modules. There seems to be some confusion generated when one speaks of "nodeMCU". Hardware wise, it speaks of the module known by that name. However nodeMCU also can refer to the firmware that runs lua code on the 8266. I've programed ESP-07 and 12 modules VIA both arduino IDE and nodeMCU IDE via ESPlorer after flashing the nodeMCU firmware to the module. The syntax between the two is different. If you have flashed and are running nodeMCU, there are "button" commands in ESPlorer that may help you determine what is going on.