forked from chrgro/microbit_temperature_mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 25.4 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="ki#nF%^UT,yzmd!gyV1]">message_to_send</variable><variable id="RMijlex)FA?51Ya~!=XE">device_id</variable><variable id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</variable><variable id="s`$A]6V.2%8BXb1GJc,6">received_message</variable><variable id="$CCRJYzzFpuwwb+2EdzG">received_message_device_id</variable><variable id="drvDQVmh3wnT2ll^1O5k">message_received_time</variable><variable id="W~|k5Ez`#rc/CM)l`/%/">time_since_message</variable><variable id="(C$0@G`QR:Tea/.X9sEX">list</variable><variable id="z3p%(q{(;4/s$mWVOLKU">received_message_value_type</variable><variable id="2^yu]eaEvQzPZt`K;2d)">no_screen</variable></variables><block type="device_forever" id="2H*2YD(au)P5ghP{+#az" x="457" y="-114"><statement name="HANDLER"><block type="device_show_number" id="hsB9?o3sZ3`Sl}lnRs3x"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="mMfW[7jm`@Dr[:XGH8`y"><mutation name="read_temp" functionid="h!WK(Gq`FHc-kiWk=Bac"></mutation></block></value><next><block type="device_pause" id="+f7mDaV=Mi`S(mRPv(4J"><value name="pause"><shadow type="timePicker" id="JB0T+9EeHcUo^qx^`2J@"><field name="ms">5000</field></shadow></value></block></next></block></statement></block><block type="pxt-on-start" id=";2Qm-2tmh.ZEd:($rmwm" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="E4t1zgSo~JN[YyRs*gZZ"><field name="VAR" id="RMijlex)FA?51Ya~!=XE">device_id</field><value name="VALUE"><shadow type="math_number" id="4w_^V9@tJDWk9E|EmT(n"><field name="NUM">1</field></shadow></value><next><block type="variables_set" id="t}I%!y$A`WS0cnSQk03c"><field name="VAR" id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_create_with" id=":;]GT-m{G_R@wcRzHTb:"><mutation items="0" horizontalafter="3"></mutation></block></value><next><block type="device_set_brightness" id=")gct@xB?vPcdPA+y)c$Q"><value name="value"><shadow type="math_number_minmax" id="X+lu`H08c6Rw9(+Sw#--"><mutation min="0" max="255" label="Value" precision="0"></mutation><field name="SLIDER">128</field></shadow></value><next><block type="radio_set_group" id="OBe9=cS=/~!3v7X0~*Q1"><value name="ID"><shadow type="math_number_minmax" id="N%9*?|y9mAZtmhtL_khf"><mutation min="0" max="255" label="Number" precision="0"></mutation><field name="SLIDER">1</field></shadow></value><next><block type="radio_set_transmit_power" id="C:lX|E(r/2Rg}bqq^zrl"><value name="power"><shadow type="math_number_minmax" id="im`Q+Nb1O}?deNqSlCM{"><mutation min="0" max="7" label="Number" precision="0"></mutation><field name="SLIDER">7</field></shadow></value><next><block type="device_print_message" id=",S@^SHsAURX=)|2r7-*k"><value name="text"><shadow type="text"><field name="TEXT">Hello!</field></shadow><block type="text_join" id="rAFcwm+Mrfs/[VB^1kCn"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="8v.=O4f]xuGl+,F3Sx3C"><field name="TEXT">ID </field></shadow></value><value name="ADD1"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="b2bu;hz((W!2BQvJXgf*"><field name="VAR" id="RMijlex)FA?51Ya~!=XE">device_id</field></block></value></block></value><next><block type="basic_show_icon" id="XA|S-YlC0bDRZsRMu8hH"><field name="i">IconNames.Square</field><next><block type="device_print_message" id="bA-EX)LygfTqY{G,lWvo"><value name="text"><shadow type="text" id=")Y+WU:y+4:iBabO+FG(Z"><field name="TEXT">Temp</field></shadow></value><next><block type="device_clear_display" id="zyCXgoG|`/cLw,+YMoA*"></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="suA=Zsz:W(713d|~TDLl" x="1983" y="-17"><mutation name="Get_message_received_time" functionid="@lgKKmdza.@Eq0gZ$5=E"><arg name="message" id="zjfud73fa9dakmcxjqea" type="string"></arg></mutation><field name="function_name">Get_message_received_time</field><value name="zjfud73fa9dakmcxjqea"><shadow type="argument_reporter_string" id="_{^fgpvz[e{R(.wBM^d~"><field name="VALUE">message</field></shadow></value><statement name="STACK"><block type="function_return" id="{,dYk#@/45r=JVhu53r6"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="string_parsefloat" id="!@?k~X_Aw`%9gsmi9R1j"></block></value></block></statement></block><block type="function_definition" id="%NX??rq^e+^,_-s-SN0X" x="1322" y="18"><mutation name="Send_message" functionid="{VhTUHQ?W!-rkZ@t)UoV"><arg name="Type" id="4oq9ip1v09z6c42r75uci" type="string"></arg><arg name="value" id="jteqkfbqfj0cnb7wn538" type="number"></arg></mutation><field name="function_name">Send_message</field><value name="4oq9ip1v09z6c42r75uci"><shadow type="argument_reporter_string" id="/hp*[q^kvN2{]mB~)~`n"><field name="VALUE">Type</field></shadow></value><value name="jteqkfbqfj0cnb7wn538"><shadow type="argument_reporter_number" id="]r?Qpl74|G#AJ8onqt%w"><field name="VALUE">value</field></shadow></value><statement name="STACK"><block type="basic_show_icon" id="3jy%#B~Z,3}E:gBP/o:T"><field name="i">IconNames.Duck</field><next><block type="variables_set" id="RVC8-=iU9R5kCc_3N}#;"><field name="VAR" id="ki#nF%^UT,yzmd!gyV1]">message_to_send</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text_join" id="8zd|~:.9:M9YdZ4B{+v+" inline="false"><mutation items="5"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="k#CGOc3]0SCD$t[OH;IY"><field name="VAR" id="RMijlex)FA?51Ya~!=XE">device_id</field></block></value><value name="ADD1"><shadow type="text" id="|%Xy@S=s=My.=s:e[8D8"><field name="TEXT">:</field></shadow></value><value name="ADD2"><shadow type="text"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="XYQ_@j=|W.1DS^TsQ_@*"><field name="VALUE">Type</field></block></value><value name="ADD3"><shadow type="text" id="g{?Y~UzLVf9@ljrNZ,ue"><field name="TEXT">:</field></shadow></value><value name="ADD4"><shadow type="text"><field name="TEXT"></field></shadow><block type="argument_reporter_number" id="9KEl(dh1[7.BZW*V5Y[."><field name="VALUE">value</field></block></value></block></value><next><block type="radio_datagram_send_string" id="QfGDZQUJlmbFrE0xkq9F"><value name="msg"><block type="variables_get" id="r5ns)[W*;GAv@-PqmgDJ"><field name="VAR" id="ki#nF%^UT,yzmd!gyV1]">message_to_send</field></block></value><next><block type="serial_writeline" id="H*7:C;[?wmt)38|@E8Ia"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="YTE@.#~#3.*WU]%g0md*"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="PY[[Gx;Od526QOVHbFn!"><field name="TEXT">Hei</field></shadow><block type="variables_get" id="NG9xR6y8J)}nyQ.F8wy8"><field name="VAR" id="ki#nF%^UT,yzmd!gyV1]">message_to_send</field></block></value><value name="ADD1"><shadow type="text" id="waF-Wjh1[K;iL{p},gNx"><field name="TEXT">:sent</field></shadow></value></block></value><next><block type="device_clear_display" id="s}hWexH]Oz!@JdRQjKB-"></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="aAF=52eY$ssS]%JCy,uS" x="917" y="65"><mutation name="read_temp" functionid="h!WK(Gq`FHc-kiWk=Bac"></mutation><field name="function_name">read_temp</field><statement name="STACK"><block type="function_return" id="9Z:,3GX2P:qmkyO3)7c?"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_temperature" id="bTsLuTxODW*/SszMsFiy"></block></value></block></statement></block><block type="device_forever" id="OWDMMUHi~T*p;A#cjqMm" x="624" y="173"><statement name="HANDLER"><block type="device_pause" id="]bl,oAjb)SY!JK@VQDao"><value name="pause"><shadow type="timePicker" id="?pXkqDB|ZhLF[~8LU4ad"><field name="ms">600000</field></shadow></value><next><block type="function_call" id="IlhBWkb6`:f^Rh(n)[`U"><mutation name="Send_message" functionid="{VhTUHQ?W!-rkZ@t)UoV"><arg name="Type" id="4oq9ip1v09z6c42r75uci" type="string"></arg><arg name="value" id="jteqkfbqfj0cnb7wn538" type="number"></arg></mutation><value name="4oq9ip1v09z6c42r75uci"><shadow type="text" id="!QCt`FhNH{?sim$]kfuB"><field name="TEXT">t</field></shadow></value><value name="jteqkfbqfj0cnb7wn538"><shadow type="math_number" id="~{*$z=v6#.hCa%aHH,8f"><field name="NUM">0</field></shadow><block type="function_call_output" id="Bc/O.%R(g_,PM~i[I1_{"><mutation name="read_temp" functionid="h!WK(Gq`FHc-kiWk=Bac"></mutation></block></value></block></next></block></statement></block><block type="function_definition" id="MQYedS8$lY5K+7/Om,O{" x="1987" y="240"><mutation name="Get_message_device_id" functionid="3on$S7X]}g%.epaS99k+"><arg name="message" id="pfacndkg8jtkvpshfwcv" type="string"></arg></mutation><field name="function_name">Get_message_device_id</field><value name="pfacndkg8jtkvpshfwcv"><shadow type="argument_reporter_string" id="Nm4B(_p8pvZgg`sv}53|"><field name="VALUE">message</field></shadow></value><statement name="STACK"><block type="function_return" id="HFE^$,rjO/p1VnY]],QK"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_index_get" id="DP^q_4r4K,EAE[2HnK3n"><value name="LIST"><block type="string_split" id="ZTEoL8AVjW(AL]+M3Cey"><value name="this"><shadow type="text"><field name="TEXT">this</field></shadow><block type="argument_reporter_string" id="7_$4#0w7#NmkpMP;a8J9"><field name="VALUE">message</field></block></value><value name="separator"><shadow type="text" id="~9HFWz_bqG*c.!spdgO#"><field name="TEXT">:</field></shadow></value></block></value><value name="INDEX"><shadow type="math_number" id="1YGjj=Dai$H;})z#!8E2"><field name="NUM">0</field></shadow></value></block></value></block></statement></block><block type="device_button_event" id="QsWKqaf8$`7kB7qPNw)^" x="686" y="403"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="function_call" id="v,)0)3T}=PV.z_5%89Vl"><mutation name="Send_message" functionid="{VhTUHQ?W!-rkZ@t)UoV"><arg name="Type" id="4oq9ip1v09z6c42r75uci" type="string"></arg><arg name="value" id="jteqkfbqfj0cnb7wn538" type="number"></arg></mutation><value name="4oq9ip1v09z6c42r75uci"><shadow type="text" id="Aj?N=LzJ6SA@PhId2Orm"><field name="TEXT">t</field></shadow></value><value name="jteqkfbqfj0cnb7wn538"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="Z(ps.^Zyp6aU-s)ezjOj"><mutation name="read_temp" functionid="h!WK(Gq`FHc-kiWk=Bac"></mutation></block></value></block></statement></block><block type="function_definition" id="Kw:Kcn-@=B7Nk](+FuKN" x="1984" y="485"><mutation name="Get_message_value_type" functionid="S8Xa[F|G~|:M4x4h9m~1"><arg name="message" id="v%gfKcW93,q{)m3zd$[L" type="string"></arg></mutation><field name="function_name">Get_message_value_type</field><value name="v%gfKcW93,q{)m3zd$[L"><shadow type="argument_reporter_string" id="=?bNuyq!bo0psWZzf]iz"><field name="VALUE">message</field></shadow></value><statement name="STACK"><block type="function_return" id="B;v!_#O6Tk55zW%9By@k"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="XDMOE!u),bAZ)[4s_kIo"><field name="NUM">0</field></shadow><block type="lists_index_get" id="`6krHxIgpm:+:hz(/kPf"><value name="LIST"><block type="string_split" id="1(V~tt@k5R!l8t=R-Bdx"><value name="this"><shadow type="text" id="]4l%;j)M4{75uJ*7=T~7"><field name="TEXT">this</field></shadow><block type="argument_reporter_string" id="u|-|XzT`n-jGHJUIiA=h"><field name="VALUE">message</field></block></value><value name="separator"><shadow type="text" id="SHVYB[DHxr(*u=)A3HaG"><field name="TEXT">:</field></shadow></value></block></value><value name="INDEX"><shadow type="math_number" id="{BgLq~c9Is)?hznhX_Y4"><field name="NUM">1</field></shadow></value></block></value></block></statement></block><block type="radio_on_string_drag" id="FFl*SrV;@@3_R,K9FNr}" x="53" y="595"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="$:rY)WGr;FN2/|u(NafF"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="basic_show_icon" id="OUuRCgSi](KWQLWpsw,u"><field name="i">IconNames.SmallDiamond</field><next><block type="variables_set" id="ZlLc0k;gw0t/B.wsss-s"><field name="VAR" id="$CCRJYzzFpuwwb+2EdzG">received_message_device_id</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="vHTErwrBEx)1(ZCJ_+)5"><mutation name="Get_message_device_id" functionid="3on$S7X]}g%.epaS99k+"><arg name="message" id="pfacndkg8jtkvpshfwcv" type="string"></arg></mutation><value name="pfacndkg8jtkvpshfwcv"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="argument_reporter_string" id="+C7-kSGTxR|9ho=K(n(X"><field name="VALUE">receivedString</field></block></value></block></value><next><block type="variables_set" id=":}a3FxK{{KG)tkj5Ru/L"><field name="VAR" id="z3p%(q{(;4/s$mWVOLKU">received_message_value_type</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="Mh?|gcUQ2_Cg9N4s$YJd"><mutation name="Get_message_value_type" functionid="S8Xa[F|G~|:M4x4h9m~1"><arg name="message" id="v%gfKcW93,q{)m3zd$[L" type="string"></arg></mutation><value name="v%gfKcW93,q{)m3zd$[L"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="argument_reporter_string" id="*Ci8O6AO3Yp}q4*H3LN#"><field name="VALUE">receivedString</field></block></value></block></value><next><block type="controls_if" id="!@=?QQ5IH|H~![|tcdtk"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="0ct2$H8UsF@]aFdX[t#n"><field name="OP">NEQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="*f;@b9Y*9VS@Ds$r.-5{"><field name="VAR" id="RMijlex)FA?51Ya~!=XE">device_id</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="p,9hc%Z2dv$*$VJzki];"><field name="VAR" id="$CCRJYzzFpuwwb+2EdzG">received_message_device_id</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="I7h|]q_z0mjmFL^le.gJ"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="nCDt6kdn[!4S%`:5M2:2"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="j~d(B}Xt0(jqCL4LzW%V"><mutation name="Check_last_message_time" functionid="g,Z;;f:d4QO]@c8l%zt!"><arg name="received_device_id" id="dwp0r6hpz5414az5pgdeh" type="number"></arg><arg name="received_value_type" id="fD1Q+y:At(T,s-fF2Q}@" type="string"></arg></mutation><value name="dwp0r6hpz5414az5pgdeh"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="cZHhpq)-#+T!M:a(Fak1"><field name="VAR" id="$CCRJYzzFpuwwb+2EdzG">received_message_device_id</field></block></value><value name="fD1Q+y:At(T,s-fF2Q}@"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="variables_get" id="O(=Mer`wZ9{oq)sqw3zb"><field name="VAR" id="z3p%(q{(;4/s$mWVOLKU">received_message_value_type</field></block></value></block></value><value name="B"><shadow type="math_number" id="?kByIt$_:BwC6rDLm/)6"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="array_push" id="2sv6$u*3HPkF#FaAs@Vz"><value name="list"><block type="variables_get" id="XrT,2D2/3mC?-p6HR%c$"><field name="VAR" id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</field></block></value><value name="value"><block type="text_join" id="yCY4v(ou^T5P$+gx@o?," inline="false"><mutation items="5"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="%Xsk5^o,v@{+p=ZNIT4L"><field name="VAR" id="$CCRJYzzFpuwwb+2EdzG">received_message_device_id</field></block></value><value name="ADD1"><shadow type="text" id="{[Cn_qhEQXC^(,i0DuRF"><field name="TEXT">:</field></shadow></value><value name="ADD2"><shadow type="text"><field name="TEXT">:</field></shadow><block type="variables_get" id="yhsWuIzno/6-l{M(a{S_"><field name="VAR" id="z3p%(q{(;4/s$mWVOLKU">received_message_value_type</field></block></value><value name="ADD3"><shadow type="text" id="}SoiD}v[:F9DAa3fzkE$"><field name="TEXT">=</field></shadow></value><value name="ADD4"><shadow type="text"><field name="TEXT"></field></shadow><block type="device_get_running_time" id="Lp:D_hY[C##~iPmt}#oW"></block></value></block></value><next><block type="radio_datagram_send_string" id="5/2X+i$6?P9]EG!/-wJ#"><value name="msg"><block type="argument_reporter_string" id="0@%vAr_e?7.$%h)=THeS"><field name="VALUE">receivedString</field></block></value><next><block type="serial_writeline" id="DJ9RSQ,+K`I_boIrFkz5"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="~:7T*Q?:o[sW%XD4x}Yi"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="n;Z6xi%!f~c0aHE8}:@Z"><field name="TEXT">Hei</field></shadow><block type="argument_reporter_string" id="/v4$KOQB)76{2L1KclSw"><field name="VALUE">receivedString</field></block></value><value name="ADD1"><shadow type="text" id="n:;1gM^5L5PR[rcQhosx"><field name="TEXT">:forward</field></shadow></value></block></value><next><block type="basic_show_icon" id="E%){X]6=!MA~HwfZwccI"><field name="i">IconNames.Yes</field></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="serial_writeline" id="eN:UXLFDQD]AG3U:w$jC"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="7$S#JbFYIS(DmpvMQv,U"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id=",s^/?r@uTW4)!`!6u^vP"><field name="TEXT">Hei</field></shadow><block type="argument_reporter_string" id="eD_([OBf2bDR`v_GLH^{"><field name="VALUE">receivedString</field></block></value><value name="ADD1"><shadow type="text" id="TCC?Oi~$4S9=]6SggI?3"><field name="TEXT">:reject_seen_recently</field></shadow></value></block></value><next><block type="basic_show_icon" id="$C|gpH}{7wuY3B6iA18s"><field name="i">IconNames.No</field></block></next></block></statement></block></statement><statement name="ELSE"><block type="serial_writeline" id="D7jM^@a-Q^h?lJT,_/6o"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="A{:(H:HF/){7,v7u}X60"><mutation items="2"></mutation><value name="ADD0"><shadow type="text" id="W@5Hj2*vI,a|?M8gsaH:"><field name="TEXT">Hei</field></shadow><block type="argument_reporter_string" id="${)#t=Nwvu2dko?2ka8?"><field name="VALUE">receivedString</field></block></value><value name="ADD1"><shadow type="text" id="4#BOoSXmXXD58[+_aE99"><field name="TEXT">:reject_own_id</field></shadow></value></block></value><next><block type="basic_show_icon" id="IpTYqBP}Je:nLxnN4X[("><field name="i">IconNames.No</field></block></next></block></statement><next><block type="device_clear_display" id="Q^h]Hix7uH~AoUHcvsFD"></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="o[;wiYHefSgU0uHVKfdA" x="1354" y="730"><mutation name="Check_last_message_time" functionid="g,Z;;f:d4QO]@c8l%zt!"><arg name="received_device_id" id="dwp0r6hpz5414az5pgdeh" type="number"></arg><arg name="received_value_type" id="fD1Q+y:At(T,s-fF2Q}@" type="string"></arg></mutation><field name="function_name">Check_last_message_time</field><value name="dwp0r6hpz5414az5pgdeh"><shadow type="argument_reporter_number" id="fu1,7^}/eWJg@doyn(B-"><field name="VALUE">received_device_id</field></shadow></value><value name="fD1Q+y:At(T,s-fF2Q}@"><shadow type="argument_reporter_string" id="3j`O(ceow5d+s)ow}GMo"><field name="VALUE">received_value_type</field></shadow></value><statement name="STACK"><block type="pxt_controls_for_of" id="$Z?Y63G5-AMXHcL#};f("><value name="VAR"><shadow type="variables_get_reporter" id="otu`iYcH[;wq3,A{,i9g"><field name="VAR" id="s`$A]6V.2%8BXb1GJc,6">received_message</field></shadow></value><value name="LIST"><block type="variables_get" id="|@8!jo0LBJZdK+tB~?CK"><field name="VAR" id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</field></block></value><statement name="DO"><block type="controls_if" id="ekoK3l}5P3u2H*JZ_*V`"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="string_includes" id="y9l|KO+a{:Bn?6dPUE(O"><value name="this"><shadow type="text"><field name="TEXT">this</field></shadow><block type="variables_get" id="9*]o/11nAPsQ/67HK[sC"><field name="VAR" id="s`$A]6V.2%8BXb1GJc,6">received_message</field></block></value><value name="searchValue"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="=cme}wW@+fRI;X?Y`6:$"><mutation items="4"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT">Hello</field></shadow><block type="argument_reporter_number" id="{Wi)8[)ZqRV`gfJay+ah"><field name="VALUE">received_device_id</field></block></value><value name="ADD1"><shadow type="text" id="rO5Q?rWvSv=IDKVWq4N^"><field name="TEXT">:</field></shadow></value><value name="ADD2"><shadow type="text"><field name="TEXT"></field></shadow><block type="argument_reporter_string" id="TNFf:|A8dV5v6-0cX,g5"><field name="VALUE">received_value_type</field></block></value><value name="ADD3"><shadow type="text" id="ChCo-MfXP#?ZI.Y8=prK"><field name="TEXT">=</field></shadow></value></block></value></block></value><statement name="DO0"><block type="variables_set" id=",=)1I0YzGbDd@j#K5+B?"><field name="VAR" id="drvDQVmh3wnT2ll^1O5k">message_received_time</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="6LfpiEdtW85=aTEi+qIY"><mutation name="Get_message_received_time" functionid="@lgKKmdza.@Eq0gZ$5=E"><arg name="message" id="zjfud73fa9dakmcxjqea" type="string"></arg></mutation><value name="zjfud73fa9dakmcxjqea"><shadow type="text"><field name="TEXT">abc</field></shadow><block type="variables_get" id="NNc[z55D0yMkOFIl4bj`"><field name="VAR" id="s`$A]6V.2%8BXb1GJc,6">received_message</field></block></value></block></value><next><block type="variables_set" id="L/Nb=P8o8f_Jn?I2_sHv"><field name="VAR" id="W~|k5Ez`#rc/CM)l`/%/">time_since_message</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="_f}yo}f~8#9@xV7*sv{X"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_get_running_time" id="fhm0{ZwqFj4kjuuut3#c"></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="uS=C3^BT4mH/bpv/x]E;"><field name="VAR" id="drvDQVmh3wnT2ll^1O5k">message_received_time</field></block></value></block></value><next><block type="controls_if" id="*y8.;aWdajfOH_coGC[;"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="Jf~;GH:swLcy@Po/bf~X"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="9tjxT{O]]_GyLV.B]as!"><field name="VAR" id="W~|k5Ez`#rc/CM)l`/%/">time_since_message</field></block></value><value name="B"><shadow type="math_number" id="-42G8cH(}uOKDAnco7~f"><field name="NUM">540000</field></shadow></value></block></value><statement name="DO0"><block type="function_return" id="/{S3c?)_4Rg%?,(}y$eG"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="b3n!j(SE3sfRoQy-,6K}"><field name="NUM">0</field></shadow></value></block></statement><statement name="ELSE"><block type="array_removeat_statement" id="e!WD,)OU|?`Dzgb]_foM"><value name="list"><block type="variables_get" id="z?z265W.%;%s2/4Ka;OZ"><field name="VAR" id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</field></block></value><value name="index"><block type="array_indexof" id="S^!]ReBv@92v-e_wm?Tp"><value name="list"><block type="variables_get" id="-)Pagg#k.c5?H|^eqGd0"><field name="VAR" id="=Rl,)=P-GS%ADuZ-j(H;">received_messages</field></block></value><value name="value"><block type="variables_get" id="Ti$qW`X~I!fD.)gc=0B,"><field name="VAR" id="s`$A]6V.2%8BXb1GJc,6">received_message</field></block></value></block></value><next><block type="function_return" id="/b.K2vw}u4VN1x,+bO!#"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="Ib;t1B~6cmKjzBE4r%bG"><field name="NUM">1</field></shadow></value></block></next></block></statement></block></next></block></next></block></statement></block></statement><next><block type="function_return" id=",QJM0CzXlsxU`M0Br_jf"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="kdL,[(9^A,EV^Wz}QIWR"><field name="NUM">1</field></shadow></value></block></next></block></statement></block></xml>