|
@ -390,7 +390,6 @@ void _relayConfigure() { |
|
|
#if WEB_SUPPORT
|
|
|
#if WEB_SUPPORT
|
|
|
|
|
|
|
|
|
void _relayWebSocketUpdate(JsonObject& root) { |
|
|
void _relayWebSocketUpdate(JsonObject& root) { |
|
|
Serial.println("_relayWebSocketUpdate"); |
|
|
|
|
|
JsonArray& relay = root.createNestedArray("relayStatus"); |
|
|
JsonArray& relay = root.createNestedArray("relayStatus"); |
|
|
for (unsigned char i=0; i<relayCount(); i++) { |
|
|
for (unsigned char i=0; i<relayCount(); i++) { |
|
|
relay.add(_relays[i].target_status); |
|
|
relay.add(_relays[i].target_status); |
|
|