jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Powering up Nodemcu and Arduino together makes rest.begin() fail with error 18771 #401

Open stramike opened 5 years ago

stramike commented 5 years ago

Hello everyone! If I power up Arduino from Nodemcu, so that they are powered at the same time, the rest.begin() call in the setup fails, printing "REST begin failed: 18771" on the console log. I tried to put a delay(up to 15 sec) just before the rest.begin() call, but it didn't help. it's still failing.

How can I make the arduino wait for esp-link to be ready to setup the rest.begin call?

Thanks for any help

uzi18 commented 5 years ago

add 5s delay at the beginning of setup function delay(5000);