Skip to content

Static IP not honored in STA mode unless WiFi.config called AFTER WiFi.begin #1138

Closed
@drmpf

Description

@drmpf

Test procedure
Flash ESP8266
start as AP for web page config do not set staticIP
power cycle
connect to AP using DHCP -> get 10.1.1.7 assigned
power cycle
start as AP for web page config and set static IP 10.1.1.201 saved in EEPROM
power cycle
connect to AP calling WiFi.config(...) then WiFi.begin
print IP -> 10.1.1.7

however if
connect to AP calling WiFi.begin and THEN WiFi.config(...)
print IP -> 10.1.1.201

see http://www.forward.com.au/pfod/CheapWifiShield/ESP2866_01_WiFi_Shield/index.html for sample sketch

Tested on version 1.6.5-947-g39819f0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions