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
parent
commit
eedab0d020
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/light.ino

+ 1
- 0
code/espurna/light.ino View File

@ -840,6 +840,7 @@ void _lightWebSocketStatus(JsonObject& root) {
for (unsigned char id=0; id < _light_channel.size(); id++) { for (unsigned char id=0; id < _light_channel.size(); id++) {
channels.add(lightChannel(id)); channels.add(lightChannel(id));
} }
root["brightness"] = lightBrightness();
} }
void _lightWebSocketOnSend(JsonObject& root) { void _lightWebSocketOnSend(JsonObject& root) {


Loading…
Cancel
Save