Get Incoming data from WIFI in interrupt
Posted: Thu Jul 27, 2017 9:42 am
hi guys
I want get incoming data from WIFI in interrupt ,like this:
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');
}