dscKeybusInterface
dscKeybusInterface copied to clipboard
VirtualKeypad-Web compilation error
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