My esp8266 receives the text and sends it to the host, but when I send text from sirial, the ESP does not see it.
while (Serial.available() > 0) { read_s = Serial.readString(); } read_s is always empty
arduino.uno
void setup() { Serial.begin(115200); pinMode(7,OUTPUT); pinMode(2,INPUT_PULLUP); } void loop() { boolean butt = digitalRead(2); Serial.println("est"); delay(10000); } void temp(){ } void led(){ digitalWrite(13,LOW); delay(100); digitalWrite(13,HIGH); } esp8266.uno
#include <ESP8266WiFi.h> #include <ESP8266HTTPClient.h> const char* ssid = ""; const char* password = ""; String wmail ="" ; String read_s; HTTPClient request; void setup() { Serial.begin(115200); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(100); } } void loop() { while (Serial.available() > 0) { read_s = Serial.readString(); } if (WiFi.status() == WL_CONNECTED) { HTTPClient request; String get_ = "https://dj-hook.herokuapp.com/api/send?token="+wmail+"&"+"text="+ read_s;; request.begin(get_); Serial.println("send mail"); request.end(); } } I solved the problem by taking another arduino, but deciding to try the old one it worked

