diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 0bdf5032..15ef0e1f 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -443,6 +443,13 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { CJSON(retainMqttMsg, if_mqtt[F("rtn")]); #endif +#ifndef WLED_DISABLE_ESPNOW + JsonObject remote = doc["remote"]; + CJSON(enable_espnow_remote, remote[F("remote_enabled")]); + getStringFromJson(linked_remote, remote[F("linked_remote")], 13); +#endif + + #ifndef WLED_DISABLE_HUESYNC JsonObject if_hue = interfaces["hue"]; CJSON(huePollingEnabled, if_hue["en"]); @@ -895,6 +902,13 @@ void serializeConfig() { if_mqtt_topics[F("group")] = mqttGroupTopic; #endif +#ifndef WLED_DISABLE_ESPNOW + JsonObject remote = doc.createNestedObject(F("remote")); + remote[F("remote_enabled")] = enable_espnow_remote; + remote[F("linked_remote")] = linked_remote; +#endif + + #ifndef WLED_DISABLE_HUESYNC JsonObject if_hue = interfaces.createNestedObject("hue"); if_hue["en"] = huePollingEnabled; diff --git a/wled00/data/settings_wifi.htm b/wled00/data/settings_wifi.htm index 1ad0be6c..1021dfd8 100644 --- a/wled00/data/settings_wifi.htm +++ b/wled00/data/settings_wifi.htm @@ -193,6 +193,17 @@ Disable WiFi sleep:
Can help with connectivity issues.
Do not enable if WiFi is working correctly, increases power consumption.
+ +
+

Wireless Remote

+ Listen for events over ESP-NOW
+ Keep disabled if not using a remote, increases power consumption.
+ + Enable Remote:
+ Hardware MAC:
+ Last Seen: None
+
+

Ethernet Type