madmartin / Jarolift_MQTT

Controlling Jarolift TDEF 433MHZ radio shutters via ESP8266 and CC1101 Transceiver Module in asynchronous mode
GNU General Public License v3.0
67 stars 28 forks source link

error: could not convert while compiling #60

Closed branka5 closed 1 year ago

branka5 commented 1 year ago

Hi, while compiling the files I am getting constantly the following error message. Can someone kindly assist? Many thanks

In file included from C:\Users\xxx\Arduino\jaro\Jarolift_MQTT_new\Jarolift_MQTT_new.ino:57:0: C:\Users\xxx\Arduino\jaro\Jarolift_MQTT_new\helpers.h: In function 'String decodeURIComponent(String)': C:\Users\xxx\Arduino\jaro\Jarolift_MQTT_new\helpers.h:156:37: error: 'stoi' is not a member of 'std' std::string rc = {(char)std::stoi(haystack, nullptr, 16)}; ^ C:\Users\xxx\Arduino\jaro\Jarolift_MQTT_new\helpers.h:156:69: error: could not convert '{}' from '' to 'std::string {aka std::basic_string}' std::string rc = {(char)std::stoi(haystack, nullptr, 16)}; ^