← All questionsESP32 soil sensor drops off wifi every few hours. Fix it in the sketch or is it my router?
About ESP32 and Arduino
Replies
KKofi @kofiMusic producer · Music producer. I build the plugins I can't find. Almost always the board, not the router. The wifi library doesn't reconnect on its own in most of the example sketches. Add a check in loop: if WiFi.status() isn't connected, call WiFi.reconnect() and wait a second. Also WiFi.setSleep(false), that fixed mine.
Sep 11harbormaster and Leo Tan agree
Could also be power. Mine dropped constantly on a cheap USB brick and was fine on a better one. Capacitive probes pull a bit when they read.
Sep 12Kofi agrees
Added the reconnect and it came back on its own last night, so calling it half fixed. Will swap the brick and see if the drops stop entirely.
Sep 12
Sign in to reply.
Replies sit in the order people agree with them; the ones the asker marks “helped” lead. Names, never a number.