+{"version":"V2.0","versionNumber":"V2.3.8","type":"core2","components":[{"name":"page0","type":"lvgl_page","layer":0,"screenId":"builtin","screenName":"","id":"fxbyvm5Euy@ay`X-","createTime":1764226026862,"backgroundColor":"#ffffff","isLVGL":true,"isSelected":true},{"name":"button0","type":"lvgl_button","layer":1,"screenId":"builtin","screenName":"","id":"t3CkoVemTI4z1eIO","createTime":1764226079779,"x":82,"y":104,"width":0,"height":0,"color":"#ffffff","backgroundColor":"#2196f3","text":"Send HTTP POST","font":"lv.font_montserrat_14","pageId":"fxbyvm5Euy@ay`X-","isLVGL":true,"isSelected":false},{"name":"label0","type":"lvgl_label","layer":2,"screenId":"builtin","screenName":"","id":"u3$*Il__IJlL@CRb","createTime":1764226323950,"x":3,"y":8,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Data content:","font":"lv.font_montserrat_14","pageId":"fxbyvm5Euy@ay`X-","isLVGL":true,"isSelected":false,"width":96,"height":15},{"name":"label1","type":"lvgl_label","layer":3,"screenId":"builtin","screenName":"","id":"rJ1RcJL2oA1_@qMp","createTime":1764226326933,"x":4,"y":35,"color":"#000000","backgroundColor":"#ffffff","bg_opacity":0,"text":"Response status code:","font":"lv.font_montserrat_14","pageId":"fxbyvm5Euy@ay`X-","isLVGL":true,"isSelected":false,"width":39,"height":15}],"resources":[{"hardware":["hardware_button","hardware_pin_button","imu","speaker","touch","mic","sdcard"]},{"unit":["unit_cat1cn"]}],"units":[{"type":"unit_cat1cn","name":"cat1cn_0","portList":["A","B","C","Custom"],"portType":"A","userPort":[22,21],"id":"pF@&6kdyXqtP!Zw@","createTime":1764226041336,"initBlockId":"F^WppPbCV)W~/a$DZIXi"}],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[],"i2cs":[],"chainBus":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"50\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"rVe2)p#A87,?=oM)9fT~\"><next><block type=\"unit_cat1cn_init\" id=\"F^WppPbCV)W~/a$DZIXi\"><mutation isCustom=\"False\"></mutation><field name=\"NAME\">cat1cn_0</field><field name=\"OPTION\">False</field><next><block type=\"lvgl_page_screen_load\" id=\"@3.27}+FbuW/U9?OBf1j\"><field name=\"NAME\">page0</field></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"450\" y=\"50\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"5R^RlL=76]5eZ1#1Tj!i\"></block></statement></block><block type=\"lvgl_button_event\" id=\":Bm?XyDtbbWJk;r4e_mZ\" x=\"50\" y=\"270\"><field name=\"NAME\">button0</field><field name=\"OPTION\">CLICKED</field><statement name=\"FUNC\"><block type=\"unit_cat1cn_http_request\" id=\"QV(=DQUn16K_[tqmOEM,\"><field name=\"NAME\">cat1cn_0</field><field name=\"METHOD\">1</field><value name=\"URL\"><shadow type=\"text\" id=\"TKvPl5R@=@GzrQ^M6_ls\"><field name=\"TEXT\">http://httpbin.org/post</field></shadow></value><value name=\"HEADERS\"><block type=\"map_on_loop\" id=\"MpIu*8oEE@eI={!m@az,\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"jf8v5GL~P;g{rY#Yv6*)\"><value name=\"key\"><shadow type=\"text\" id=\"$Tp$p?AiHVx]lFqZR*!S\"><field name=\"TEXT\">Content-Type</field></shadow></value><value name=\"value\"><shadow type=\"text\" id=\"?EM+@/:?a[1mE2]=*[D7\"><field name=\"TEXT\">application/json</field></shadow></value><next><block type=\"create_map_key\" id=\"~6oUKY#@guG::|q0AN1E\"><value name=\"key\"><shadow type=\"text\" id=\"YyOD%[I44:~/w239AbXI\"><field name=\"TEXT\">Custom-Header</field></shadow></value><value name=\"value\"><shadow type=\"text\" id=\"d@TDjy6ObRm!+PRIa0?[\"><field name=\"TEXT\">MyHeaderValue</field></shadow></value></block></next></block></statement></block></value><value name=\"DATA\"><block type=\"map_on_loop\" id=\":!%Z0rOi,?@hNc_L6v{C\"><statement name=\"LOOP\"><block type=\"create_map_key\" id=\"sK}ZPdScTzZ{o5hoASDm\"><value name=\"key\"><shadow type=\"text\" id=\"!v:m.LFR=.Qxt/)mbh-N\"><field name=\"TEXT\">message</field></shadow></value><value name=\"value\"><shadow type=\"text\" id=\"S`E@Vcp#2J[S3Gx.d7fM\"><field name=\"TEXT\">Hello from M5Stack!</field></shadow></value><next><block type=\"create_map_key\" id=\"/%^wiVa*)){Gilg9naD6\"><value name=\"key\"><shadow type=\"text\" id=\"6`!41!8_kz]A!K2)qy2L\"><field name=\"TEXT\">status</field></shadow></value><value name=\"value\"><shadow type=\"text\" id=\".z^@?g(Un9{ku2U5:_u?\"><field name=\"TEXT\">active</field></shadow></value></block></next></block></statement></block></value><next><block type=\"lvgl_label_set_text\" id=\"MX@Z|Xt}9pK5PA(yCS0J\"><field name=\"NAME\">label0</field><value name=\"VALUE\"><shadow type=\"text\" id=\"9pYc9JA)4R=c)Gre;c)n\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"dujVW#XFND;.~j|DtX;`\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"S`[E-L+u|}X#KOV+l_=H\"><field name=\"TEXT\">Data content:</field></shadow></value><value name=\"VALUE2\"><block type=\"unit_cat1cn_http_data_content\" id=\"2{bI,ku#LT%Gv;^3:7_O\"><field name=\"NAME\">cat1cn_0</field></block></value></block></value><next><block type=\"lvgl_label_set_text\" id=\"T}}3zGA/xgH[n(q;QZ(o\"><field name=\"NAME\">label1</field><value name=\"VALUE\"><shadow type=\"text\" id=\"a{H+%h|iIF^8PI{#?m_x\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"SO}Cm$]}XoLu91;3F-~m\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"RC_tlUZM[YDzvTAVPK^J\"><field name=\"TEXT\">Response status code:</field></shadow></value><value name=\"VALUE2\"><block type=\"unit_cat1cn_http_response_code\" id=\"n/mC+BxPx(-D|f~Wr=K|\"><field name=\"NAME\">cat1cn_0</field></block></value></block></value></block></next></block></next></block></statement></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":320,"height":240,"scale":0.77,"screenName":"","blockId":"","screenColorType":0,"rotation":1,"id":"builtin","createTime":1764226026859}],"logicWhenNum":0,"customList":[]}
0 commit comments