I want get incoming data from WIFI in interrupt ,like this:
#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');
}