* fix cppcheck warnings
* changed MqTT retained flags of some topics
This commit is contained in:
lumapu 2024-04-02 13:09:19 +02:00
parent 1887d6cea5
commit 7ee1f992cb
8 changed files with 16 additions and 25 deletions

View file

@ -166,7 +166,7 @@ class RestApi {
#else
DynamicJsonDocument json(12000); // does this work? I have no ESP32 :-(
#endif
DeserializationError err = deserializeJson(json, (const char *)mTmpBuf, mTmpSize);
DeserializationError err = deserializeJson(json, static_cast<const char *>(mTmpBuf, mTmpSize));
json.shrinkToFit();
JsonObject obj = json.as<JsonObject>();