Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By M0rt3z4
#68623 hi guys
I want get incoming data from WIFI in interrupt ,like this:

Code: Select all#define SERVER_PORT   port_num
WiFiServer server(SERVER_PORT);
WiFiClient client;
String command = "";
String ssid = "esp8266";
String pass = "12345678";

setup() {
    //setup wifi
    if (WiFi.softAP(ssid.c_str(), psw.c_str())) {
          server.begin();
     }

   //setup wifi interrupt
}

loop() {
   //do some work based on received data from wifi
}

isr() {
   //get incoming data from wifi
   command = client.readStringUntil('\r');
}