Closed Protezhe closed 1 year ago
Sorry for the late reply, I am a bit busy.
First guess, your WiFi connection is not stable enough. The ESP is reconnecting and all open connections are closed. This would explains why artnet.begin(host)
is working.
Try something like this:
At the beginning of the file
// Artnet settings
ArtnetWifi artnet;
int status = WL_IDLE_STATUS;
int status_old = status;
In loop()
, maybe at the end
status = WiFi.status();
if (status != status_old && status == WL_CONNECTED) {
artnet.begin(host);
}
status_old = status;
This will start the ArtNet communication only if status changes to CONNECTED and not all the time.
Hi. I have a problem using this sceetch:
When ESP 07 working for 1 - 12 hours artnet sending stoped. Wifi connection is good. But artnet don't send something (And artnet node is not show in net)
When i add this code problem is out. But it's not good to begin host every loop: