/* Decoding.ino created 3 July 2022 By MR-XieXuan The code is public domain : https://github.com/MR-XieXuan/URLCode_for_Arduino QQ:3325629928 */ #include // Define URL Object URLCode url; void setup(){ Serial.begin(9600); // Let input the urlcode in URL Object http://www.mrxie.xyz/%7B%22json%22:%22I'm%20json%22%7D url.urlcode = "http://www.mrxie.xyz/%7B%22json%22:%22I'm%20json%22%7D"; // Decoding the urlcode url.urldecode(); // Gain the decoded URL String st = url.strcode; // http://www.mrxie.xyz/{"json":"I'm json"} Serial.println( st ); } void loop(){ Serial.println( "StrCode is " + url.strcode ); Serial.println( "URLCode is " + url.urlcode ); Serial.println(); delay(1000); }