1 line
5.2 KiB
XML
1 line
5.2 KiB
XML
<xml version="Mixly 2.0 rc1" board="MixGo AI" xmlns="http://www.w3.org/1999/xhtml"><variables><variable id="ysjp#WqK-HlbA}VPG8h)">topic</variable><variable id="2)!w=n}:W2pv#T1NVNJz">msg</variable></variables><block type="factory_block_notes" id="u,xA%Sj_4e3B*-}1I~`s" x="-653" y="-353"><field name="VALUE">MixIOT-接收mixio平台数据</field><next><block type="network_init" id="~t},GWqjNbiaxpfiahD@"><value name="RX"><shadow type="pins_digital_pin" id="LvWAJQj!b/V##?:@Plmn"><field name="PIN">8</field></shadow></value><value name="TX"><shadow type="pins_digital_pin" id="06.~3t+;?=C2T-IE1+FU"><field name="PIN">9</field></shadow></value><next><block type="network_connect" id="XO$:+sk7rIV#g8iRK*}p"><value name="account"><shadow type="text" id="!wF5$at](zQjQz;)T(m7"><field name="TEXT">MixGo AI</field></shadow></value><value name="password"><shadow type="text" id="LCqEJ~(iI$l2gfpWJ~uq"><field name="TEXT">12345</field></shadow></value><next><block type="lcd_init" id="(CZNc3=KeCjl%N@?AI@v"><value name="freq"><shadow type="math_number" id="0,[s*)JS(!J8@q96doH="><field name="NUM">15000000</field></shadow></value><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0x0000</field></shadow><block type="LCD_color_seclet" id="Ieze{0mZ}#y3d%|2%`~H"><field name="COLOR">#000000</field></block></value><next><block type="iot_mixio_connect" id="D*;Q*u]^/OVT]A(Em|J^"><value name="VAR"><shadow type="variables_get" id="9*+gM[([P[Evu/.T%2@1"><field name="VAR">c</field></shadow></value><value name="SERVER"><shadow type="text" id="Y1]YVZ/r)/BF63ww~+5U"><field name="TEXT">mixio.mixly.org</field></shadow></value><value name="USERNAME"><shadow type="text" id="J|d!^4G8fCW)DHwMlaSp"><field name="TEXT">username</field></shadow></value><value name="PASSWORD"><shadow type="text" id="axqx$zt-R].ilM1VYm4F"><field name="TEXT">password</field></shadow></value><value name="PROJECT"><shadow type="text" id="G/{r[.#?F?0Px%IY;9WL"><field name="TEXT">MyProject</field></shadow></value><value name="SUB"><shadow type="factory_block_return" id="RF%;dU+efE/-f72i0j(m"><field name="VALUE">sub_cb</field></shadow></value><next><block type="IOT_MIXIO_SUBSCRIBE" id="CIu5CrT934HR^liiSfx]"><value name="VAR"><shadow type="variables_get" id="76;-r{u,vCM7s!yRlJ,M"><field name="VAR">c</field></shadow></value><value name="TOPIC"><shadow type="text" id="3;3lN3htAnux%^QyH}d["><field name="TEXT">button</field></shadow></value><next><block type="controls_whileUntil" id="F^)*@IKw1!jk92uv`T(N"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="EP~JHFAYJbZ(/n%3yF#@"><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="iot_mixio_check" id="QLS=uSM2qF/MU%o^-a|y"><value name="VAR"><shadow type="variables_get" id=";{V9w%RteUwBnzMD2V1%"><field name="VAR">c</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block><block type="procedures_defnoreturn" id="6,(GVa7d%{zx#Ax#x4S*" x="-643" y="199"><mutation><arg name="topic" varid="ysjp#WqK-HlbA}VPG8h)"></arg><arg name="msg" varid="2)!w=n}:W2pv#T1NVNJz"></arg></mutation><field name="NAME">sub_cb</field><statement name="STACK"><block type="system_print" id="-SOXSq)iGn(r*71LaYEB"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="6LP=TaQ^9ButNt3KMeI]"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="!bn@H4k6PutC6F8C)H(-"><field name="VAR">msg</field></block></value><next><block type="controls_if" id="Hf9d;6a^il8:Aby!J0I3"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1"></mutation><value name="IF0"><block type="logic_compare" id="l32j}Z)?Mc4F*d@Gms@0"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="J4$BG!P9?w;.RJJ%qnqM"><field name="VAR">msg</field></block></value><value name="B"><block type="text_to_number" id="eox$=3u!KSJ;5RF/b:i4"><field name="TOWHAT">b</field><value name="VAR"><shadow type="text" id="`v^P%.Biy1nY@/jq_G-p"><field name="TEXT">1</field></shadow></value></block></value></block></value><statement name="DO0"><block type="lcd_clear" id="q4]{?z6nSfUsro)v.w=G"><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0x0000</field></shadow><block type="LCD_color_seclet" id="6:-$^ywN]}r5uWz=V4iU"><field name="COLOR">#ffffff</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="0230ZTq_!3}wiI_S^Lx%"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="c^Xt7XT5s05u|!VZM~=a"><field name="VAR">msg</field></block></value><value name="B"><block type="text_to_number" id="X`:0?|{.)9U%I;],@}|4"><field name="TOWHAT">b</field><value name="VAR"><shadow type="text" id="##K)1Z)Hbs%*I29mx(d+"><field name="TEXT">0</field></shadow></value></block></value></block></value><statement name="DO1"><block type="lcd_clear" id="[ip=[7VC}[Pn{nYr=L83"><value name="color"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">0x0000</field></shadow><block type="LCD_color_seclet" id="}2TgOeW/D?R4W;e^OBqI"><field name="COLOR">#000000</field></block></value></block></statement></block></next></block></statement></block></xml> |