taligentx / dscKeybusInterface

An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
GNU General Public License v3.0
504 stars 126 forks source link

VirtualKeypad-Web compilation error #315

Open jpmorrison opened 1 year ago

jpmorrison commented 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';
francofischer commented 5 months ago

Thanks for post the solution