I have written a little program which should (at the end) host a little website. This is just my setup. But for some reason, it writes "srl?" endlessly onto the serial monitor. I just connected the ESP8266-01 to my Arduino UNO, using 115200 baud with the nodeMCU board. Using different boards results in an error telling me I should use nodeMCU.
As I have written in the title, I do not understand how it can produce an endless output without a loop with Serial.print/write
in it.
#include <ESP8266WiFi.h>
const char* NAME = "x"; //ssid
const char* PWRT = "x"; //password
WiFiServer server(80);
void setup() {
Serial.begin(115200);
Serial.printf("connect with %s \n", NAME);
WiFi.begin(NAME, PWRT);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
}
server.begin();
Serial.printf("webserver open, access with %s\n", WiFi.localIP().toString().c_str());
}
void loop() {
// put your main code here, to run repeatedly:
}