mirror of
https://github.com/wled/WLED.git
synced 2025-11-08 18:48:53 +00:00
Squashed commit of the following:
Remove sync receive Disallow 2D effects on non-2D segments Optimisations Sync clarification AR palettes Return of 2 audio simulations Bugfix in sync #3344 - remove excessive segments - ignore inactive segments if not syncing bounds - send UDP/WS on segment change - pop_back() when removing last segment Add pairing support for ESP-NOW sync Reduce string RAM footprint UDP parse optimisation Make WizMote work with sync. ESP-NOW wireless sync POC. - caveat: devices have to be on the same channel - clashes with WizMote handling ATM
This commit is contained in:
@@ -349,9 +349,8 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
|
||||
nightlightTargetBri = nl[F("tbri")] | nightlightTargetBri;
|
||||
|
||||
JsonObject udpn = root["udpn"];
|
||||
notifyDirect = udpn["send"] | notifyDirect;
|
||||
sendNotificationsRT = udpn["send"] | sendNotificationsRT;
|
||||
syncGroups = udpn["sgrp"] | syncGroups;
|
||||
receiveNotifications = udpn["recv"] | receiveNotifications;
|
||||
receiveGroups = udpn["rgrp"] | receiveGroups;
|
||||
if ((bool)udpn[F("nn")]) callMode = CALL_MODE_NO_NOTIFY; //send no notification just for this request
|
||||
|
||||
@@ -567,8 +566,8 @@ void serializeState(JsonObject root, bool forPreset, bool includeBri, bool segme
|
||||
}
|
||||
|
||||
JsonObject udpn = root.createNestedObject("udpn");
|
||||
udpn["send"] = notifyDirect;
|
||||
udpn["recv"] = receiveNotifications;
|
||||
udpn["send"] = sendNotificationsRT;
|
||||
udpn["recv"] = receiveGroups != 0;
|
||||
udpn["sgrp"] = syncGroups;
|
||||
udpn["rgrp"] = receiveGroups;
|
||||
|
||||
@@ -648,7 +647,7 @@ void serializeInfo(JsonObject root)
|
||||
spi.add(spi_miso);
|
||||
#endif
|
||||
|
||||
root[F("str")] = syncToggleReceive;
|
||||
root[F("str")] = false; //syncToggleReceive;
|
||||
|
||||
root[F("name")] = serverDescription;
|
||||
root[F("udpport")] = udpPort;
|
||||
|
||||
Reference in New Issue
Block a user