marcoschwartz / aREST_UI

Embedded UI for the aREST framework
72 stars 34 forks source link

Wifi server wont run #23

Open dotjavafile opened 7 years ago

dotjavafile commented 7 years ago

I am trying to read analog input but the wifi server wont run

void loop(){ k= analogRead(k); WiFiClient client = server.available(); if (!client) { return; }while(!client.available()){ //delay(1); }rest.handle(client); }

marcoschwartz commented 7 years ago

Hello, which board/hardware are you using?

dotjavafile commented 7 years ago

I am using analog input from nodemcu v2 12e esp8266. I realized the problem was in delay. It seems if I read analog input without delay nodemcu wifi stops working.