初始化提交

This commit is contained in:
王立帮
2024-07-20 22:09:06 +08:00
commit c247dd07a6
6876 changed files with 2743096 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/*
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 <URLCode.h>
// 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);
}