Hi,
i've installed a fresh linux system with newest version of Arduino.
Now the following code
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiClient.h>// Initialisierungen
ESP8266WebServer server(80);
WiFiClient wifiClient;const char indexPage[] PROGMEM = R"=====(
Test
)=====";void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_AP);
WiFi.softAP("test", "123456789");
Serial.print("Accesspoint address: ");
Serial.println(WiFi.softAPIP());
server.on("/", display_root);
server.begin();
}void loop() {
server.handleClient();
delay(500);
}void display_root() {
Serial.println("Display root");
server.send(200, "text/html", indexPage);
}
gives me the following output in terminal
New client
http-server loop: conn=1 avail=485 status=wait-read
request: GET / HTTP/1.1
method: GET url: / search: keepAlive=: 1
headerName: Host
headerValue: 192.168.4.1
headerName: Connection
headerValue: keep-alive
headerName: Cache-Control
headerValue: max-age=0
headerName: Upgrade-Insecure-Requests
headerValue: 1
headerName: User-Agent
headerValue: Mozilla/5.0 (Linux; Android 10; SM-A600FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
headerName: Accept
headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
headerName: Accept-Encoding
headerValue: gzip, deflate
headerName: Accept-Language
headerValue: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7
args:
args count: 0
args:
args count: 0
Request: /
Arguments:
final list of key/value pairs:
Display root
http-server loop: conn=0 avail=0 status=wait-close
Drop client
New client
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
http-server loop: conn=1 avail=0 status=wait-read
webserver: closing after read timeout
Drop client
in my old system with previous Arduino version i didnt have this output.
Is this a fault (http-server loop) or is everything ok?
If everything ok: How can i switch off this output?
Best wishes
E.
EDIT: This behaviour is only on my linux system. Same code in Windows-Arduino runs without this strange terminal outputs. Has anyone an idea, why the linux version behaves different from windows version? Are Linux useres in here?