WLED/usermods/Fix_unreachable_netservices_v2
Will Miles 7db52d794b Fix incorrect json value in all usermods
Must've been a bad search-and-replace on my part somewhere..
2025-03-28 21:35:37 -04:00
..
library.json Fix incorrect json value in all usermods 2025-03-28 21:35:37 -04:00
readme.md First half of usermod readme updates 2025-01-31 03:57:23 +00:00
usermod_Fix_unreachable_netservices.cpp Merge branch 'main' into usermod-libs 2025-02-16 10:40:30 +00:00

readme.md

Fix unreachable net services V2

Attention: This usermod compiles only for ESP8266

This usermod-v2 modification performs a ping request to a local IP address every 60 seconds. This ensures WLED net services remain accessible in some problematic WiFi environments.

The modification works with static or DHCP IP address configuration.

Story:

Unfortunately, with many ESP projects where a web server or other network services are running, after some time, the connecton to the web server is lost. The connection can be reestablished with a ping request from the device.

With this modification, in the worst case, the network functions are not available until the next ping request. (60 seconds)

Webinterface

The number of pings and reconnects is displayed on the info page in the web interface. The ping delay can be changed. Changes persist after a reboot.

JSON API

The usermod supports the following state changes:

JSON key Value range Description
PingDelayMs 5000 to 18000000 Deactivate/activate the sensor

Changes also persist after a reboot.

Installation

  1. Add Fix_unreachable_netservices to custom_usermods in your PlatformIO environment.

Hopefully I can help someone with that - @gegu