WLED/wled00/wled_json.h

15 lines
453 B
C
Raw Normal View History

#ifndef WLED_JSON_H
#define WLED_JSON_H
/*
* JSON API (De)serialization
*/
void deserializeSegment(JsonObject elem, byte it);
bool deserializeState(JsonObject root);
void serializeSegment(JsonObject& root, WS2812FX::Segment& seg, byte id);
void serializeState(JsonObject root);
void serializeInfo(JsonObject root);
void serveJson(AsyncWebServerRequest* request);
void serveLiveLeds(AsyncWebServerRequest* request);
#endif //WLED_JSON_H