Skip to content

Commit

Permalink
save palette to eeeprom and send it via mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
CWempe committed Dec 2, 2018
1 parent 63dcb3c commit 88f6f23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/led_palettes.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,10 @@ void setPalette (uint8_t palette) {
currentPalette = spain_p;
break;
}

// publish new palette number via mqtt
lightNode.setProperty("palette").send(String(palette));

// store current palette number to eeprom
Embedis::set("paletteValue", String(palette));
}

0 comments on commit 88f6f23

Please sign in to comment.