diff --git a/src/ESPUIclient.cpp b/src/ESPUIclient.cpp index 0becacf..ab47d10 100644 --- a/src/ESPUIclient.cpp +++ b/src/ESPUIclient.cpp @@ -310,14 +310,14 @@ uint32_t ESPUIclient::prepareJSONChunk(uint16_t startindex, break; } - if(!FragmentRequest.containsKey(F("id"))) + if(!FragmentRequest["id"].is()) { Serial.println(F("ERROR:prepareJSONChunk:Fragmentation:Request does not contain a control ID")); break; } uint16_t ControlId = uint16_t(FragmentRequest[F("id")]); - if(!FragmentRequest.containsKey(F("offset"))) + if(!FragmentRequest["offset"].is()) { Serial.println(F("ERROR:prepareJSONChunk:Fragmentation:Request does not contain a starting offset")); break;