+{"version":"V2.0","versionNumber":"V2.4.1","type":"unit-poep4","components":[],"resources":[{"software":["http"]},{"hardware":["hardware_button","hardware_pin_button","rgb","ir"]}],"units":[],"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=\"},fzcpA/xtwHrR%yh}!%\"><next><block type=\"ethernet_init\" id=\"vA2tzY1J-kF-@z^e4(+!\"><field name=\"NAME\">ethernet_0</field><next><block type=\"ethernet_active\" id=\"(*c]WR0Vp,_U30+q=J~@\"><field name=\"NAME\">ethernet_0</field><field name=\"OPTION\">True</field><next><block type=\"text_print\" id=\"b$.JI}TkpY5u[|Fer4;3\"><value name=\"TEXT\"><shadow type=\"text\" id=\"yuX$0uh=BJpr=fB,7_VK\"><field name=\"TEXT\">wait network connect</field></shadow></value><next><block type=\"controls_whileUntil\" id=\"tOOdY6gJn(u?u][FU,m0\"><field name=\"MODE\">UNTIL</field><value name=\"BOOL\"><block type=\"logic_compare\" id=\"Z|!X-ftjPt+O^1?!3S[p\"><field name=\"OP\">EQ</field><value name=\"A\"><block type=\"ethernet_get_status\" id=\"bAlfq|i^-X(9*Sqwp.ue\"><field name=\"NAME\">ethernet_0</field></block></value><value name=\"B\"><block type=\"ethernet_eth_status\" id=\"]3IH|{Oyu{Fyamk^3O;t\"><field name=\"OPTION\">ETH_GOT_IP</field></block></value></block></value><statement name=\"DO\"><block type=\"text_print\" id=\"AeXK.3F(sHF,?1iaCUl{\"><value name=\"TEXT\"><shadow type=\"text\" id=\"}lLDB1#fYrHT!oH%mOZt\"><field name=\"TEXT\">.</field></shadow></value><next><block type=\"time_sleep_second\" id=\"E.oQBZ#O{^:s=pJkPU5|\"><value name=\"SECOND\"><shadow type=\"math_number\" id=\"RFx#WuNpM[T{VvPKqmhP\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value></block></next></block></statement><next><block type=\"text_print\" id=\"c3G,^.Bd)m$CN*HWWoHK\"><value name=\"TEXT\"><shadow type=\"text\" id=\"R%eIH%YL=V61P1hHIwa_\"><field name=\"TEXT\">local network is connected</field></shadow></value><next><block type=\"text_print\" id=\"i5Pyn3@Kd:(F9N}jJU_V\"><value name=\"TEXT\"><shadow type=\"text\" id=\"-bA0;jP5fO53VBJoRMq~\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"Cqc4_Z+0xeEOx:loI6K2\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"~ro.AKdt|Tf_d9U=UIVA\"><field name=\"TEXT\">IP:</field></shadow></value><value name=\"VALUE2\"><block type=\"ethernet_get_localip\" id=\"C]/3_SalSi=x}*UEyP^v\"><field name=\"NAME\">ethernet_0</field></block></value></block></value><next><block type=\"text_print\" id=\"H_*@(8#HiZ{y!xnjC^Q^\"><value name=\"TEXT\"><shadow type=\"text\" id=\"I1f6_J{.1bjh^mXs*V[k\"><field name=\"TEXT\">Please press the Btn</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"basic_on_loop\" id=\"loop_block\" deletable=\"false\" x=\"50\" y=\"470\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"0_|ZkG_{N`VH0pI1VJQ3\"><next><block type=\"controls_if\" id=\"xje*Iou=jsv2/Lc5|FLZ\"><value name=\"IF0\"><block type=\"button_get_status\" id=\"^^+pYh]xb|H`9Mk-hDRE\"><field name=\"NAME\">BtnA</field><field name=\"OPTION\">wasClicked</field></block></value><statement name=\"DO0\"><block type=\"text_print\" id=\"rdlmIL8q,dL_bG(`z[~B\"><value name=\"TEXT\"><shadow type=\"text\" id=\"!4mqHN(-9,*00*d_(;jE\"><field name=\"TEXT\">Btn Pressed</field></shadow></value><next><block type=\"http_request\" id=\"=SN=O7(A!u_Q*F//ArM6\"><mutation contentType=\"json\"></mutation><field name=\"METHOD\">GET</field><field name=\"TYPE\">json</field><value name=\"URL\"><shadow type=\"text\" id=\"p`JcP7mv,E8P.NFnggv_\"><field name=\"TEXT\">https://wttr.in/?format=%22%C,%20%t%22</field></shadow></value><value name=\"CONTENT_TYPE\"><shadow type=\"text\" id=\"V0W3G8tYqZ/Yx6mJgf=c\"><field name=\"TEXT\">application/json</field></shadow></value><value name=\"HEADERS\"><block type=\"map_on_loop\" id=\"~SQWh{xt3`7G*OtZGJ]P\"></block></value><value name=\"DATA\"><block type=\"map_on_loop\" id=\"69t6.[I{?(([Au81DRj5\"></block></value><next><block type=\"text_print\" id=\"S`(=XajU~p)-48{ZMZ2:\"><value name=\"TEXT\"><shadow type=\"text\" id=\"-bA0;jP5fO53VBJoRMq~\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"AIp{u-MU]B/U!UejGkPw\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"LT(t@AZR.HC,J.t=|kd!\"><field name=\"TEXT\">Status Code:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_status_code\" id=\"yw?)7/)=!OjYU:Ja#%m8\"></block></value></block></value><next><block type=\"text_print\" id=\"o1.!m:QFzAQMEo9q5G9c\"><value name=\"TEXT\"><shadow type=\"text\" id=\"-bA0;jP5fO53VBJoRMq~\"><field name=\"TEXT\">hello M5</field></shadow><block type=\"text_add_str\" id=\"|T]JP/:$)thmR$ToysNx\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Qtq(F(V^1q5.JPm-qbKJ\"><field name=\"TEXT\">Text:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_text\" id=\"`LXIXT7(KIah{F7q/`go\"></block></value></block></value></block></next></block></next></block></next></block></statement></block></next></block></statement></block>","screen":[],"logicWhenNum":0,"customList":[]}
0 commit comments