You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// respond to GET requests on URL /heap
server.on("/heap", HTTP_GET, [](AsyncWebServerRequest *request){
Serial.println(remoteclient.remoteIP().toString());
Serial.println(remoteclient.remotePort());
request->send(200, "text/plain", String(ESP.getFreeHeap()));
});
Output:
0.0.0.0
0
Rest of my webserver code is running fine.
Using github version of:
AsyncTCP-master-24102017.zip
ESPAsyncWebServer-master-24102017.zip
arduino-esp32-master_v3.0-dev-899-g3a271a4a_19102017.zip
Arduino IDE 1.6.12 running on doitESP32devkitV1
Bug or are do I something wrong?
The text was updated successfully, but these errors were encountered:
When using remoteIP() and remotePort() to catch the connected client ip address provides only 0's.
Code:
AsyncWebServer server(80);
AsyncClient remoteclient;
// respond to GET requests on URL /heap
server.on("/heap", HTTP_GET, [](AsyncWebServerRequest *request){
Serial.println(remoteclient.remoteIP().toString());
Serial.println(remoteclient.remotePort());
request->send(200, "text/plain", String(ESP.getFreeHeap()));
});
Output:
0.0.0.0
0
Rest of my webserver code is running fine.
Using github version of:
AsyncTCP-master-24102017.zip
ESPAsyncWebServer-master-24102017.zip
arduino-esp32-master_v3.0-dev-899-g3a271a4a_19102017.zip
Arduino IDE 1.6.12 running on doitESP32devkitV1
Bug or are do I something wrong?
The text was updated successfully, but these errors were encountered: