ESP-01 changes IP after request
Posted: Thu Jul 30, 2015 4:21 am
Hi,
I hope I did not miss the topic if there was already one about my porblem but I could not find any.
my goal is to run a webserver on my ESP-01. The problem is that the ESP keeps changing the IP after every request.
It seems like the ESP disconnects and reconnects after finishing a request. I added
According to user_interface.h that means the ESP disconnects and reconnects.
I know I could try to use static IPs, but I don't want to set static IPs as they are no suitable solution for me, so please don't suggest it. The reason is, that I plan to use more ESPs in different environments. One (or more) should be used at work, where I can NOT use static IPs.
Has anyone gotten similar problems or maybe a clue what's going on? Or can somebody tell me how to tell the ESP not to disconnect from my AP after finishing a request?
I hope I did not miss the topic if there was already one about my porblem but I could not find any.
my goal is to run a webserver on my ESP-01. The problem is that the ESP keeps changing the IP after every request.
It seems like the ESP disconnects and reconnects after finishing a request. I added
Code: Select all
to ESP8266WiFiClass::_eventCallback in ESP8266WiFi.cpp and discovered, that after finishing server.send there is output Serial.print("eventCallback: ");
Serial.println(event->event);
Code: Select all
eventCallback: 1
eventCallback: 0
According to user_interface.h that means the ESP disconnects and reconnects.
I know I could try to use static IPs, but I don't want to set static IPs as they are no suitable solution for me, so please don't suggest it. The reason is, that I plan to use more ESPs in different environments. One (or more) should be used at work, where I can NOT use static IPs.
Has anyone gotten similar problems or maybe a clue what's going on? Or can somebody tell me how to tell the ESP not to disconnect from my AP after finishing a request?