dscKeybusInterface icon indicating copy to clipboard operation
dscKeybusInterface copied to clipboard

VirtualKeypad-Web compilation error

Open jpmorrison opened this issue 2 years ago • 1 comments

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';


jpmorrison avatar Apr 12 '23 03:04 jpmorrison

Thanks for post the solution

francofischer avatar Apr 08 '24 23:04 francofischer