Browse Source
Merge pull request #1584 from xoseperez/mcspr-patch-1
Send brightness to websocket
rules-rpn
Xose Pérez
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
code/espurna/light.ino
|
|
@ -840,6 +840,7 @@ void _lightWebSocketStatus(JsonObject& root) { |
|
|
|
for (unsigned char id=0; id < _light_channel.size(); id++) { |
|
|
|
channels.add(lightChannel(id)); |
|
|
|
} |
|
|
|
root["brightness"] = lightBrightness(); |
|
|
|
} |
|
|
|
|
|
|
|
void _lightWebSocketOnSend(JsonObject& root) { |
|
|
|