Open jpmorrison opened 1 year ago
Won't compile with current ArduinoJson. Simple fix adding: const
@@ -1644,7 +1644,7 @@ if (!err) { JsonObject root = doc.as<JsonObject>(); if (root.containsKey("btn_single_click")) { - char *tmp = (char *)root["btn_single_click"].as<char*>(); + char *tmp = (char *)root["btn_single_click"].as<const char*>(); char * const sep_at = strchr(tmp, '_'); if (sep_at != NULL) { *sep_at = '\0';
Thanks for post the solution
Won't compile with current ArduinoJson. Simple fix adding: const