mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #777] WifiManager not working with fixed IP #651
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#651
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eXadra on GitHub (Nov 30, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/777
Dear all.
Using this library with dhcp and parameters for the MQTT everithing works well (code based on your AutoConnectWithFSParametersAndCustomIP).
when I try to use with fixed ip, just adding the line
wifiManager.setSTAStaticIPConfig(kIPAddress, kGateway, kSubnetMask);
After reboot it returns to AP mode again, it seems that the wi parameters are not saved.
Check bellow
_*WM: Configuring access point...
*WM: ESP1795988
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
*WM: Handle root
*WM: Sent config page
*WM: WiFi save
*WM: Parameter
*WM: server
*WM: 192.168.1.246
*WM: Parameter
*WM: port
*WM: 1883
*WM: Parameter
*WM: User
*WM: exadra
*WM: Parameter
*WM: Password
*WM: pass
*WM: static ip
*WM: 192.168.1.12
*WM: static gateway
*WM: 192.168.1.254
*WM: static netmask
*WM: 255.255.255.0
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Custom STA IP/GW/Subnet
*WM: 192.168.1.12
*WM: Already connected. Bailing out.
0000047.795: WiFi connected. IP address: 192.168.1.12_
->> It says already connected and gets the IP 192.168.1.12 but thats not true, pinging it, this ip doesn´t exist. After reboot goes back to AP mode
Thanks
@tablatronix commented on GitHub (Nov 30, 2018):
you didnt fill out form
@eXadra commented on GitHub (Nov 30, 2018):
Sorry. :)
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP12 E/F/S (nodemcu, wemos, feather)
ESP Core Version: 2.4.0, staging
2.3.0
[X ] 2.4.1
Settings in IDE
Additional libraries:
#include <FS.h>
#include <Arduino.h>
#include "ArduinoJson.h"
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <ESP8266mDNS.h>
#include <IRremoteESP8266.h>
#include <IRrecv.h>
#include <IRsend.h>
#include <IRutils.h>
@tablatronix commented on GitHub (Dec 1, 2018):
Hmm not a known bug, can you see if this is fixed in development branch?
@tablatronix commented on GitHub (Dec 1, 2018):
Maybe try erasing flash, it might think its already connected and not apply the new ip
@eXadra commented on GitHub (Dec 2, 2018):
Erased Flash, same behavior :(.
I will try with the development branch version.
Thanks
@pvihang commented on GitHub (Jul 31, 2019):
Dear @eXadra
Did you find the solution to the Static IP issue using Wifimanager?
I am still not able to set Static IP using the AutoConnectwithStaticIp.ino nor any luck with AutoConnectwithFSparametersandCustomIp.ino
On serial monitor it shows the IP which I have set, but I am unable to ping that IP.
AutoConnect.ino for dhcp works great. But i need static IP configuration which is not working
Thanks
@lizard79 commented on GitHub (Oct 12, 2019):
Did you find any solution? Have the same problem ESP-M3 , 8285.
Thanks
@eyk107 commented on GitHub (Dec 2, 2019):
Could please someone post a working solution for fix dns and hostname?
@tablatronix commented on GitHub (Dec 3, 2019):
Use development branch
@eyk107 commented on GitHub (Dec 3, 2019):
And Do you have a working example for IP, subnet, DNS and hostname?
@tablatronix commented on GitHub (Dec 4, 2019):
Not sure but the DEV/ example should have everything possible in it.