Marijn78

Untitled

Apr 19th, 2020
243
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void updateGroupLightstateRTC(String json) {
  2.   StaticJsonDocument<512> doc;
  3.   DeserializationError error = deserializeJson(doc, json);
  4.   if (error) {
  5.     Serial.print(F("deserializeJson() failed: "));
  6.     Serial.println(error.c_str());
  7.     return;
  8.   } else {
  9.     JsonObject lightstates = doc["lightstates"];
  10.     for (x = 0; x < lightstates.size(); x++) {
  11.       //?
  12.     }
  13.   }
  14. }
RAW Paste Data