Getting IP address of NodeMCU with a simple script, and some validation tips.
First.
go to the Wifi Connections, - Uncheck the "Internet Sharing",
and click on Wifi Options.



Now, reset the device by clicking the 'RST" button.
http://www.cnx-software.com/2015/10/29/getting-started-with-nodemcu-board-powered-by-esp8266-wisoc/

The Router _ESSID is "Network Name" as found in the Configuration panel of the Mac Connections window.

The password would be set in this field.

End Result : 192.168.2.3 is the IP address.

Troubleshooting tips:
is the Network name and the Password set correctly in the code.
wifi.setmode(wifi.STATION)
wifi.sta.config("networkname","password")
print(wifi.sta.getip())
Next.. check that the Internet sharing is set ON.

Validation:
ping 192.168.2.3

I found that if the Ping to this device does NOT work- then just click on the RST button on the device and it should get started.

0 Comments:
Post a Comment
<< Home