How to delete a static IP?
Posted: Sun Jun 24, 2018 10:35 am
Hi,
I want to connect my ESP8266 to two different APs... on the first AP, the ESP8266 should have a static IP, but on the other AP it should be non-static.
But after the connection to the first AP with a static IP, and doing
my ESP8266 didnt get a new IP from the second AP... sta.ifconfig() shows me always the static IP from the first connection.
How can I delete this static IP from the first connection to get a new non-static IP from the second connection?
I want to connect my ESP8266 to two different APs... on the first AP, the ESP8266 should have a static IP, but on the other AP it should be non-static.
But after the connection to the first AP with a static IP, and doing
Code: Select all
sta.disconnect() #from the first AP
sta.connect(<ESSID second AP>,<password second AP>)
How can I delete this static IP from the first connection to get a new non-static IP from the second connection?