The static ip is unreachable due to a change of router, so I would like to change it to a DHCP assigned . What is the best way to do that, I have changed the name of the ssid on my phone, but not sure about how to edit the ip address.
Thanks
3 possible ways depending upon what really changed.
If the ssid, pwd and the last 3 parts of your IPs range did change
dead easy
use an usb cable and flash using the serial port
depends
if you have the lines
web_server:
port: 80
in your existing YAML code you could likely connect to the device since it started in AP mode if it wasn’t able to connect to it’s known network. For example if the ssid chanced.
You can then
a) compile or run/upload the YAML with the new settings
b) connect with a machine to that AP network
c) use the OTA button from the web_server and upload the compiled file to the device
d) but it not only depends upon the web_server being enabled you must also have access to the compiled from that browser window.
If you once changed the last x after the last dot, condigure the ssid and pwd of the new router so it matches the old router and add the line
use_address: for 1 OTA flash. Device will then boot with the IP you defined in static_ip:
and don’t forget to remove the use_address: line for future OTA flash operations.
Thanks, but I don’t really want to change anything on the new router because everything else I have to do with wifi has been configured to use the new settings
Pardon me for not understanding properly, but how do I actually edit the the IP section, because it is not seen in my routers wifi list.
I don’t have any web server line in the yaml file
I did change the last x to another number but still no joy.
By AP, I take it you mean access point, and they are using the new settings.
If the IP section can’t be edited, I suppose I would have to start afresh?
Thanks
1- compile a new configuration, choose manual download and save the bin somewhere on your device (can even be your mobile)
2- connect to the hotspot with that device
3- open the web page of the esp with a browser
4- install the bin file you compiled in step 1
Further, I do recommend to use dhcp.
In your router you can make a dhcp reservations so it will always get the same addres
That