0

HUZZAH ESP8266 WiFi connection not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

HUZZAH ESP8266 WiFi connection not working

by jonpb on Sat Mar 02, 2019 8:26 pm

Putty and nodemcu-tool both connect and I am able to upload and run lua scripts.

Also the gpio library is working, but I'm having problems with the wifi and net libraries.

The following code fails on wifi.ap.config:

Code: Select all | TOGGLE FULL SIZE
assert(wifi.setmode(wifi.STATIONAP))
cfg={}
cfg.ssid="pageflip"
cfg.pwd="electrosolve"
assert(wifi.ap.config(cfg))

The error is:

Code: Select all | TOGGLE FULL SIZE
bad argument #1 to 'assert' (value expected)

Also, if I try to flash a new firmware, esptool.py v2.6 does not connect, giving the following error:

Code: Select all | TOGGLE FULL SIZE
COM3 failed to connect: Failed to connect to Espressif device: Timed out waiting for packet header

Thanks

jonpb
 
Posts: 3
Joined: Sat Mar 02, 2019 8:14 pm

Please be positive and constructive with your questions and comments.