-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 10.8 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="Bs:xm6g~jyVt:W@Q=,gd">index</variable><variable id="*`JCzUt9OO62@^*d[=OZ">maxMessageLength</variable><variable id="y4|%L{tMe3#BeEkN,3fp">sendBytes</variable><variable id="Fh+9(RN_^rfUHi9aR73s">serialReceivedString</variable><variable id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</variable><variable id="e*}L(ZVKRd1-o5Xc+u]{">recBytes</variable></variables><block type="pxt-on-start" id="g8,W,/1o7^noA;hvU]A(" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="m:U?$8iT{H7GRg]Y:KVP"><field name="VAR" id="*`JCzUt9OO62@^*d[=OZ">maxMessageLength</field><value name="VALUE"><shadow type="math_number" id="{q$u|4r1[0j!YYN@4L}6"><field name="NUM">18</field></shadow></value><next><block type="radio_set_group" id="?0f[gn76d)*LNCEU$2YO"><value name="ID"><shadow type="math_number_minmax" id="kFQC~VSI9XfcvH^_P9TK"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">255</field></shadow></value><next><block type="radio_set_frequency_band" id="~Di.41|Y@-o;2gITh5/("><value name="band"><shadow type="math_number_minmax" id="@rdb1f%fyL[A[,L;C7hN"><mutation min="0" max="83" label="Band" precision="0"></mutation><field name="SLIDER">50</field></shadow></value><next><block type="serialSetRxBufferSize" id=";[@y|1)_#G+UR.7;29_y"><value name="size"><shadow type="math_number" id="V!~cj`:xDED(l$9t*Dzd"><field name="NUM">128</field></shadow></value><next><block type="serialSetTxBufferSize" id=";aP|_)Bzw49U}m^{HFG$"><value name="size"><shadow type="math_number" id="w|g#7l_Yg)ubA}_SzY;V"><field name="NUM">128</field></shadow></value><next><block type="serial_writeline" id="@fU{]2F;sHEIq1IS]^xN"><value name="text"><shadow type="text" id="?8mwEtT``,?lmFYJQhoF"><field name="TEXT">GW: Rover gateway started</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="radio_on_string_drag" id="*l[15P;7Xm;IDAUe1I0%" x="527" y="0"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="|39)0=o48vk~%J.sP{sU"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="_x`P_;32mfi:%K,KImc,"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text_join" id="Gu=*.lBFD~j:+IJ4Z~5D"><mutation items="2"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="dvh;$kER(Gk~R:vZ2Rrx"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="ADD1"><shadow type="text"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="Yz[hDUPpmTE/O(8k$sRy"><field name="VALUE">receivedString</field></block></value></block></value><next><block type="device_while" id="[[WPQ=/)HdeNEc4!,*m6"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="string_includes" id="`Nh)[h,fVswU4kR]ZL{:"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="(9?lqslbHO!o]@u[@??e"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="searchValue"><block type="typescript_expression" id="J8BVAyJ5^._ReJ4LTru)" editable="false"><field name="EXPRESSION">"\n"</field></block></value></block></value><statement name="DO"><block type="serial_writeline" id="jwk77,vW9RAt`*_^d@S6"><value name="text"><block type="string_substr" id="8k;5_?XdJ{S#*SjEWtGf"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="EYVX[ne{^SrSNT.z8og`"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="start"><shadow type="math_number" id="l_lJC4-uC?8s5lw,}Jv#"><field name="NUM">0</field></shadow></value><value name="length"><block type="string_indexof" id="cvg,{]BsGep0*H)2H}~u"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="+yEpnv3,*ugwAZ?)V9`9"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="searchValue"><block type="typescript_expression" id="of@ii{C{P2^~3D;6D+fV" editable="false"><field name="EXPRESSION">"\n"</field></block></value></block></value></block></value><next><block type="variables_set" id="?|On-gVl:GK;gnp!QZ2l"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="string_substr" id="^n+!4.f5;vLxOQQGdRsC"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="?t=f/fa[Ems!R^O?YPUp"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="start"><block type="math_arithmetic" id="dS)RBzmk|CIVFwblMOh7"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="string_indexof" id="EmZ]A-b%Co}ox=L]gr_x"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="V?jhzfE`].b)!.zs3FMp"><field name="VAR" id="5CWnx2/ksQv4M^e;Di)+">radioRecBuffer</field></block></value><value name="searchValue"><block type="typescript_expression" id="%*PsPV?KW0RGn_bAM4Sb" editable="false"><field name="EXPRESSION">"\n"</field></block></value></block></value><value name="B"><shadow type="math_number" id="hV6)hd?peMU)W*QsDvVG"><field name="NUM">1</field></shadow></value></block></value><value name="length"><shadow type="math_number" id="$:FzJ,E+HV0|YIc^+YAN"><field name="NUM">0</field></shadow></value></block></value></block></next></block></statement><next><block type="variables_change" id="wqE;BKl]W$m6$sDO2EeP"><field name="VAR" id="e*}L(ZVKRd1-o5Xc+u]{">recBytes</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text_length" id="C=*z8,;(3X^E#=eh:BUS"><value name="VALUE"><block type="argument_reporter_string" id="e`gJo`[c?_p3cyRhsrrb"><field name="VALUE">receivedString</field></block></value></block></value></block></next></block></next></block></statement></block><block type="serial_on_data_received" id="#QC9ezj!6`+?S+SFoR{3" x="0" y="461"><value name="delimiters"><shadow type="serial_delimiter_conv" id="@!xlLn6Y{i.UWksTKCML"><field name="del">Delimiters.NewLine</field></shadow></value><statement name="HANDLER"><block type="variables_set" id="QB])Yux)vg2yU8@S(3$x"><field name="VAR" id="Fh+9(RN_^rfUHi9aR73s">serialReceivedString</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="serial_read_buffer" id="zgU.~}$|*e*.;e/Il^EZ"></block></value><next><block type="function_call" id="z]+nLg`Sw4qQ}W#~eH0L"><mutation name="SendMessage" functionid="YO/jTyi,P2d$$W9uB6k-"><arg name="message" id="0hgdp5m6g95qnou9s6yhdf" type="string"></arg></mutation><value name="0hgdp5m6g95qnou9s6yhdf"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="variables_get" id="syB+QuU8?-SX+xxx6Tyg"><field name="VAR" id="Fh+9(RN_^rfUHi9aR73s">serialReceivedString</field></block></value></block></next></block></statement></block><block type="function_definition" id="SBc7lG*0P.vcdQ3y}X!X" x="565" y="461"><mutation name="SendMessage" functionid="YO/jTyi,P2d$$W9uB6k-"><arg name="message" id="0hgdp5m6g95qnou9s6yhdf" type="string"></arg></mutation><field name="function_name">SendMessage</field><value name="0hgdp5m6g95qnou9s6yhdf"><shadow type="argument_reporter_string" id="UO^TiKwC+M^.Ess-c=7p"><field name="VALUE">message</field></shadow></value><statement name="STACK"><block type="pxt_controls_for" id="4~{wRBf~s[u$[v,p!qiE"><value name="VAR"><shadow type="variables_get_reporter" id="2HbAO1C|{R;o-#NLI#]-"><field name="VAR" id="Bs:xm6g~jyVt:W@Q=,gd">index</field></shadow></value><value name="TO"><shadow type="math_whole_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="-sZ!;gv4;$JX3wE*D5B)"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_js_round" id="^w1f?JsJF,ZgZk-KzO$C"><field name="OP">ceil</field><value name="ARG0"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="h~o#{yD36i2~#e4-Y;=p"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text_length" id="7sl%G%5om6gre[$)H=YW"><value name="VALUE"><block type="argument_reporter_string" id="-Mj~;{CxFa=%c:yw53H`"><field name="VALUE">message</field></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="kRE^UU5pIX|-:+q2bB#/"><field name="VAR" id="*`JCzUt9OO62@^*d[=OZ">maxMessageLength</field></block></value></block></value></block></value><value name="B"><shadow type="math_number" id="[,BjMOI${Wc?FI$Akhxu"><field name="NUM">1</field></shadow></value></block></value><statement name="DO"><block type="radio_datagram_send_string" id="RWMj}_kcL7,wzqbL$OZg"><value name="msg"><block type="string_substr" id="^weG*8E:$i6~7C.%pzu~"><value name="this"><shadow type="text"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="~e])i2e80vVw|.CLY6tF"><field name="VALUE">message</field></block></value><value name="start"><block type="math_arithmetic" id="^l;p.A^:;ufT~k*O7lIJ"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Q5}g:/W_,Xr451A,MTs."><field name="VAR" id="Bs:xm6g~jyVt:W@Q=,gd">index</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="rk/Y:MJ(u#l`2q*HwipZ"><field name="VAR" id="*`JCzUt9OO62@^*d[=OZ">maxMessageLength</field></block></value></block></value><value name="length"><block type="variables_get" id="keJew^dm];2(iE75i`j$"><field name="VAR" id="*`JCzUt9OO62@^*d[=OZ">maxMessageLength</field></block></value></block></value></block></statement><next><block type="radio_datagram_send_string" id="H=#1cw_#I2WSfj]jTH%L"><value name="msg"><shadow type="text"><field name="TEXT"></field></shadow><block type="typescript_expression" id="s@k02GSTE34J/l{oSw^R" editable="false"><field name="EXPRESSION">("\n")</field></block></value><next><block type="variables_change" id="vARz}b$nhUJgZhjT;oFI"><field name="VAR" id="y4|%L{tMe3#BeEkN,3fp">sendBytes</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text_length" id="e6x/n^(3#vr.dr_KVhRv"><value name="VALUE"><block type="variables_get" id="og$BJmx[4(FmTfC`0.qY"><field name="VAR" id="Fh+9(RN_^rfUHi9aR73s">serialReceivedString</field></block></value></block></value></block></next></block></next></block></statement></block></xml>