1 line
4.9 KiB
XML
1 line
4.9 KiB
XML
<xml version="Mixly 2.0 rc1" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_block_notes" id="g-ESvxM}{RK)5cPGdu9}" x="-93" y="-90"><field name="VALUE">Socket-_套接字发送接收数据,需要连接ESP-AT固件设备</field><next><block type="network_init" id="tHJyUL|g2m*PIrG!QS]i"><value name="VAR"><shadow type="variables_get" id="p(BY_-v2DiR$I:!ooUxg"><field name="VAR">nic</field></shadow></value><value name="RX"><shadow type="pins_digital_pin" id="?rIMnfuXw4/TeTKxK|k4"><field name="PIN">8</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="V-h?jGech59P`o2gbLLL"><field name="PIN">9</field></shadow></value><next><block type="network_connect" id="_liw:?rL{fZN:W:DW5-="><value name="VAR"><shadow type="variables_get" id=";*xlFm|W#KB{R^aHnhV@"><field name="VAR">nic</field></shadow></value><value name="account"><shadow type="text" id="]T]?QzJ7DbE,GJ6W|yAD"><field name="TEXT">MixGo AI</field></shadow></value><value name="password"><shadow type="text" id="v9,0pQ);Vw2:cb@vs]Lr"><field name="TEXT">12345</field></shadow></value><next><block type="system_print" id="d+0Q,LPm9R]){6LQlx8I"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="^8YNQBG/P4U,+6T^8krc"><field name="TEXT">Mixly</field></shadow><block type="network_ifconfig" id="_L${!xY=MC=nDVEM{WjD"><field name="mode">2</field><value name="VAR"><shadow type="variables_get" id="wE7@#3^8WhrU9X%!}5:;"><field name="VAR">nic</field></shadow></value></block></value><next><block type="network_socket_init" id="7aG1Or[-vl|nr{8`xaPN"><value name="VAR"><shadow type="variables_get" id="y[Wzy@{f^O`RwJ#}OaP$"><field name="VAR">sock</field></shadow></value><next><block type="network_socket_connect" id="kY~H#y02E#2Uf=(s3eng"><value name="VAR"><shadow type="variables_get" id="7[n`cwqXUH|J[x!|auOI"><field name="VAR">sock</field></shadow></value><value name="address"><block type="tuple_create_with_noreturn" id="G:[D(|Q!mQ.-w`@wGFI/" inline="true"><mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation><value name="ADD0"><block type="text" id="jX`^b1[K],zBc*N8?6lS"><field name="TEXT">192.168.1.116</field></block></value><value name="ADD1"><block type="math_number" id="Q)SKgN%g|ndVV0O9c}Zk"><field name="NUM">3456</field></block></value></block></value><next><block type="network_socket_settimeout" id="Ey[6TH(Oy)usUy$H,(5#"><value name="VAR"><shadow type="variables_get" id="BzjkhJAi?QG5a5w9!d;J"><field name="VAR">sock</field></shadow></value><value name="time"><shadow type="math_number" id="rwmsEniB{$xP2uvZfUdo"><field name="NUM">5</field></shadow></value><next><block type="controls_whileUntil" id="SGu!6H6{=jW5;9Sgqp06"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="T^:)iZb%O[h.{HV5DPeQ"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="network_socket_send" id="8QDIj=gm|})Q+|4n[w4j"><value name="VAR"><shadow type="variables_get" id="d~_{)@=Yl866_d!:`GTb"><field name="VAR">sock</field></shadow></value><value name="content"><shadow xmlns="http://www.w3.org/1999/xhtml" type="variables_get" id="LR3bRcuA(k|8eM|FP!^u"><field name="VAR">response</field></shadow><block type="text" id=")kcL05d{])7:(7Gb/g7b"><field name="TEXT">Mixly</field></block></value><next><block type="controls_delay" id="4C]{[0G]viOwTAyo9X8k"><field name="Time">ms</field><value name="DELAY_TIME"><shadow type="math_number" id="4B{yu=h;pe10dIfVg;t)"><field name="NUM">1000</field></shadow></value><next><block type="variables_set" id="6pk$A^.o_LqL:JVd:!R%"><field name="VAR">data</field><value name="VALUE"><block type="network_socket_receive" id="pxGtB+PCex/LMp#eZ+Ex"><value name="VAR"><shadow type="variables_get" id="4p($pb.M=cNTQ9+*V|:L"><field name="VAR">sock</field></shadow></value><value name="size"><shadow type="math_number" id="J(1!5s%H{jX_OA`2T6Y#"><field name="NUM">4096</field></shadow></value></block></value><next><block type="controls_if" id="lNRLugT@c.o:-5%pgfu5"><value name="IF0"><block type="logic_compare" id="XMhJwl@XccTF*AgZ7zM+"><field name="OP">NEQ</field><value name="A"><block type="text_length" id="*2~mhky]j2Z3(i]wwqj}"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="ZtS9}6!sKj/azx)QaM,0"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="SJW6?WM8FW+rWx/(9UJ~"><field name="VAR">data</field></block></value></block></value><value name="B"><block type="math_number" id="yY`HaHz]pSp`0twJ{ltu"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="system_print" id="oYsC(+.4,x2C(H/:_|Fy"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="#C/ALRcT@WG$(bs__I3*"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="`O|s2O3YiM_haM_a)RnJ"><field name="VAR">data</field></block></value></block></statement></block></next></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml> |