aREST_UI icon indicating copy to clipboard operation
aREST_UI copied to clipboard

Wifi server wont run

Open dotjavafile opened this issue 8 years ago • 2 comments

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); }

dotjavafile avatar Dec 06 '16 21:12 dotjavafile

Hello, which board/hardware are you using?

marcoschwartz avatar Dec 07 '16 06:12 marcoschwartz

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.

dotjavafile avatar Dec 18 '16 12:12 dotjavafile