Handling MQTT commands formatted like HTTP requests.

This commit is contained in:
2021-01-08 16:20:05 +01:00
parent 25b5891f98
commit 31157453cb
3 changed files with 68 additions and 16 deletions

View File

@ -13,16 +13,20 @@ extern std::list<Edge*> edges;
extern std::vector<Corner*> corners;
extern CRGB leds[LED_COUNT];
extern CRGB color;
enum AnimationMode {
AM_CORNERS,
AM_FIRST_CORNER,
AM_NODES,
AM_FIRST_NODE,
AM_FLASH
AM_FLASH,
AM_OFF,
AM_ERROR,
AM_NONE
};
extern AnimationMode mode;
extern AnimationMode temp_mode;
extern unsigned long temp_mode_until;
extern int return_to_brightness;