[GH-ISSUE #62] Static IP when in Station Mode #44

Closed
opened 2026-02-28 01:23:03 +03:00 by kerem · 4 comments
Owner

Originally created by @jonathanendersby on GitHub (Jan 16, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/62

Is there any way to specify a static IP when in station mode?

Originally created by @jonathanendersby on GitHub (Jan 16, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/62 Is there any way to specify a static IP when in station mode?
kerem closed this issue 2026-02-28 01:23:04 +03:00
Author
Owner

@tzapu commented on GitHub (Jan 16, 2016):

not currently,
on the road map to sort

<!-- gh-comment-id:172244449 --> @tzapu commented on GitHub (Jan 16, 2016): not currently, on the road map to sort
Author
Owner

@tzapu commented on GitHub (Jan 17, 2016):

thanks for the pull request
now added, together with suggested modifications to variables
please test and reopen if problematic

<!-- gh-comment-id:172315405 --> @tzapu commented on GitHub (Jan 17, 2016): thanks for the pull request now added, together with suggested modifications to variables please test and reopen if problematic
Author
Owner

@josep112 commented on GitHub (Jan 23, 2016):

Hello after update wifimanager to use wifiManager.setSTAStaticIP Config now appears this error:

/Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::handleWifiSave()':
/Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:462:20: error: 'class IPAddress' has no member named 'fromString'
_sta_static_ip.fromString(server->arg("ip"));
^
/Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:467:20: error: 'class IPAddress' has no member named 'fromString'
_sta_static_gw.fromString(server->arg("gw"));
^
/Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:472:20: error: 'class IPAddress' has no member named 'fromString'
_sta_static_sn.fromString(server->arg("sn"));
^
exit status 1
Erro compilando.

Pleas help me

Thanks

<!-- gh-comment-id:174194118 --> @josep112 commented on GitHub (Jan 23, 2016): Hello after update wifimanager to use wifiManager.setSTAStaticIP Config now appears this error: /Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::handleWifiSave()': /Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:462:20: error: 'class IPAddress' has no member named 'fromString' _sta_static_ip.fromString(server->arg("ip")); ^ /Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:467:20: error: 'class IPAddress' has no member named 'fromString' _sta_static_gw.fromString(server->arg("gw")); ^ /Users/joseantoniosanchez/Documents/Arduino/libraries/WiFiManager-master/WiFiManager.cpp:472:20: error: 'class IPAddress' has no member named 'fromString' _sta_static_sn.fromString(server->arg("sn")); ^ exit status 1 Erro compilando. Pleas help me Thanks
Author
Owner

@tzapu commented on GitHub (Jan 24, 2016):

hi, you need to run the latest github version of the esp8266 core for arduino ide, until they release a new staging at least

<!-- gh-comment-id:174262803 --> @tzapu commented on GitHub (Jan 24, 2016): hi, you need to run the latest github version of the esp8266 core for arduino ide, until they release a new staging at least
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#44
No description provided.