WebThingsIO / webthing-arduino

Simple server for ESP8266, ESP32, Ethernet, or WiFi101-compatible boards compliant with Mozilla's proposed WoT API
Mozilla Public License 2.0
207 stars 78 forks source link

ESP8266 analogread crashes Wifi #17

Closed anu1905 closed 4 years ago

anu1905 commented 6 years ago

How can I read an analogvalue using an ESP8266 device (wemos) with Arduino IDE, but without crashing the gateway? The gateway crashes upon using analogRead(A0). I tried several options-delay( ), yield ( ). I'm a newbie at programming. Could someone help me with a solution?

hobinjk commented 6 years ago

Sorry for the delay in getting to this! What sort of crash do you get? Can you share the full code you're trying to run?