+{"version":"V2.0","versionNumber":"V2.4.0","type":"stamplc","components":[{"name":"screen","type":"screen","layer":0,"screenId":"builtin","screenName":"","id":"__stamplc_screen","createTime":1766025581179,"x":0,"y":0,"width":240,"height":135,"backgroundColor":"#000000","size":0,"isSelected":true},{"name":"title0","type":"title","layer":1,"screenId":"builtin","screenName":"","id":"esIzosI#n7q8nt5_","createTime":1766371403895,"x":0,"y":0,"color":"#ffffff","backgroundColor":"#0000FF","text":"StamPLC PoE Example","textOffset":3,"font":"Widgets.FONTS.DejaVu18","isSelected":false},{"name":"label0","type":"label","layer":2,"screenId":"builtin","screenName":"","id":"hvUYQ4Rdwrkb`C#*","createTime":1766371415324,"x":2,"y":33,"color":"#ffffff","backgroundColor":"#222222","text":"IP:","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":23,"height":21},{"name":"label1","type":"label","layer":3,"screenId":"builtin","screenName":"","id":"jjd8mhv#rolkLbkQ","createTime":1766372481421,"x":2,"y":65,"color":"#ffffff","backgroundColor":"#222222","text":"Status Code:","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":121,"height":21},{"name":"label2","type":"label","layer":4,"screenId":"builtin","screenName":"","id":"r0F!#X2oyPMYZusY","createTime":1766372485049,"x":2,"y":96,"color":"#ffffff","backgroundColor":"#222222","text":"Text:","font":"Widgets.FONTS.DejaVu18","rotation":0,"isSelected":false,"width":44,"height":21}],"resources":[{"software":["http"]},{"hardware":["hardware_button","hardware_pin_button","speaker","hardware_plcio","hardware_pwr485","hardware_can","sdcard"]},{"plcmodule":["stamplc_poe"]}],"units":[],"hats":[],"caps":[],"chains":[],"bases":[],"plcmodules":[{"type":"stamplc_poe","name":"stamplc_poe_0","id":"y8!QAxN4gkG*%mqu","createTime":1766371382049,"initBlockType":"stamplc_poe_init","initBlockId":"B.dOatnov@``1EvH[72Y"}],"i2cs":[],"chainBus":[],"blockly":"<block type=\"basic_on_setup\" id=\"setup_block\" deletable=\"false\" x=\"50\" y=\"30\"><mutation isBegin=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_begin\" id=\"X-=khi?7k^pkL+AxNumN\"><next><block type=\"wlan_sta_init\" id=\"|DeJ1CR{M]8GJekO%H9%\"><next><block type=\"wlan_sta_set_active\" id=\"ykYyU7;(s$P}0b27qSwe\"><field name=\"ACTIVE\">False</field><next><block type=\"stamplc_poe_init\" id=\"B.dOatnov@``1EvH[72Y\"><field name=\"NAME\">stamplc_poe_0</field><next><block type=\"stamplc_poe_ifconfig_subnet\" id=\"VaiHZL-O@$;X@|=i|3`r\"><field name=\"NAME\">stamplc_poe_0</field><value name=\"IP\"><shadow type=\"text\" id=\"FMOMtBsE4o^DwO8rum44\"><field name=\"TEXT\">192.168.8.198</field></shadow></value><value name=\"SUBNET\"><shadow type=\"text\" id=\"{{P`v-jiG6hxbl=uAZ}H\"><field name=\"TEXT\">255.255.255.0</field></shadow></value><value name=\"GATEWAY\"><shadow type=\"text\" id=\"q4oDY$U7~9H{FrMdN#,(\"><field name=\"TEXT\">192.168.8.1</field></shadow></value><value name=\"DNS\"><shadow type=\"text\" id=\"=ezdEn{Oq;cw/D.3){=.\"><field name=\"TEXT\">8.8.8.8</field></shadow></value><next><block type=\"controls_whileUntil\" id=\"^$8m2JWSK}cS)_HU%DD*\"><field name=\"MODE\">WHILE</field><value name=\"BOOL\"><block type=\"logic_negate\" id=\"0,c$iKI:`_GWiM%BjZ+m\"><value name=\"BOOL\"><block type=\"stamplc_poe_isconnected\" id=\")%#C+?htV[GQb{n(X,4/\"><field name=\"NAME\">stamplc_poe_0</field></block></value></block></value><statement name=\"DO\"><block type=\"time_sleep_second\" id=\"3k7WZna?Dq:Z4Lrfhzy(\"><value name=\"SECOND\"><shadow type=\"math_number\" id=\"EqdK@gs`=srol*1Q0Jm4\"><mutation max=\"Infinity\" min=\"0\" precision=\"0\"></mutation><field name=\"NUM\">1</field></shadow></value><next><block type=\"text_print\" id=\"5_Wh.Sq-6n7/Shds{g;,\"><value name=\"TEXT\"><shadow type=\"text\" id=\"dl[CEHX^G9!h7rNy4rB)\"><field name=\"TEXT\">.</field></shadow></value></block></next></block></statement><next><block type=\"label_set_text\" id=\"n3JZ,4WYvt(|x(NdnEz7\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"/y#I[O4*e3d{m#3,AC9m\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"MM$(}`k0%-{Am9/4-PUM\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Fk7uH-:?g+I:7t!n1usB\"><field name=\"TEXT\">IP:</field></shadow></value><value name=\"VALUE2\"><block type=\"stamplc_poe_get_localip\" id=\"k:|L_%ywnBUSsP;5)}Gt\"><field name=\"NAME\">stamplc_poe_0</field></block></value></block></value><next><block type=\"text_print\" id=\"U]qJ1p2W+r1yh3Frxy|~\"><value name=\"TEXT\"><shadow type=\"text\" id=\"p_nCK6%j9vPSINi{FT((\"><field name=\"TEXT\">local network is connected</field></shadow></value><next><block type=\"text_print\" id=\"rTMEv_4|M|6m~YV:~4`N\"><value name=\"TEXT\"><shadow type=\"text\" id=\"O,VkZuMK[OHP,1/^mW~d\"><field name=\"TEXT\"></field></shadow><block type=\"text_add_str\" id=\"Pm.GRF%A|_.7$elpX^1W\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"T1pL}k}56+[Z.omCx2BX\"><field name=\"TEXT\">IP:</field></shadow></value><value name=\"VALUE2\"><block type=\"stamplc_poe_get_localip\" id=\"w0,BZS1CmJnKM]C)8Hi?\"><field name=\"NAME\">stamplc_poe_0</field></block></value></block></value></block></next></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=\"570\"><mutation isUpdate=\"true\"></mutation><field name=\"UPDATEOP\">true</field><statement name=\"FUNC\"><block type=\"system_m5_update\" id=\"gbK+lHb!nz%QM/=U$q#R\"><next><block type=\"controls_if\" id=\"b-I!u?_u`_^]D%~nxx*!\"><value name=\"IF0\"><block type=\"button_was_pressed\" id=\"dM/.da3#%yb#.rJ8KIP(\"><field name=\"NAME\">BtnA</field></block></value><statement name=\"DO0\"><block type=\"text_print\" id=\"/[U$P9R/,0M_|mb77zbj\"><value name=\"TEXT\"><shadow type=\"text\" id=\"sM4AJb3Gpg{{7ch`x,#+\"><field name=\"TEXT\">Btn Pressed</field></shadow></value><next><block type=\"label_set_text\" id=\"@9#x[xz2mLD$,A;!T}c$\"><field name=\"NAME\">label0</field><value name=\"TEXT\"><shadow type=\"text\" id=\"!7ZSv15v%cI;P/oh%m(L\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\",3Hr%9|nJeobB*wY9Ghr\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"/,h[E{~T^^+{DC#xSU3(\"><field name=\"TEXT\">IP:</field></shadow></value><value name=\"VALUE2\"><block type=\"stamplc_poe_get_localip\" id=\"oo1_5(IKCK34HHB{6HT2\"><field name=\"NAME\">stamplc_poe_0</field></block></value></block></value><next><block type=\"label_set_text\" id=\"ww+rbDl4C)eYm{1i7/+l\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"!7ZSv15v%cI;P/oh%m(L\"><field name=\"TEXT\">Status Code:</field></shadow></value><next><block type=\"label_set_text\" id=\"10wE/AU?uEgy)_|IMYH`\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"omizL95USDhP2;?jLfu%\"><field name=\"TEXT\">Text:</field></shadow></value><next><block type=\"http_request\" id=\"hF4).e,[jF4pmO(`SL}[\"><mutation contentType=\"json\"></mutation><field name=\"METHOD\">GET</field><field name=\"TYPE\">json</field><value name=\"URL\"><shadow type=\"text\" id=\"#TiXnOs}cJ`XaW9)s_vp\"><field name=\"TEXT\">https://wttr.in/?format=%22%C,%20%t%22</field></shadow></value><value name=\"CONTENT_TYPE\"><shadow type=\"text\" id=\"8TT@pOKAy{.7a(Vy9g)%\"><field name=\"TEXT\">application/json</field></shadow></value><value name=\"HEADERS\"><block type=\"map_on_loop\" id=\"K6@}]{6w2J*K@J|]X3_;\"></block></value><value name=\"DATA\"><block type=\"map_on_loop\" id=\"eehcJ~i!bF|(SFMg{PXe\"></block></value><next><block type=\"text_print\" id=\"]4%wShsevb+nA_jP4a4B\"><value name=\"TEXT\"><shadow type=\"text\" id=\"vp@)8o%nLwps?#oE9R_O\"><field name=\"TEXT\">local network is connected</field></shadow><block type=\"text_add_str\" id=\"eXjU:7)Y.t|a`R++L5t{\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"D][5?bE+(tJ{?S`kgm`H\"><field name=\"TEXT\">Status Code:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_status_code\" id=\"5/h*)NW#~ZDJoXO;|5eR\"></block></value></block></value><next><block type=\"text_print\" id=\":G#nkI,lUH3(v~vAB.;h\"><value name=\"TEXT\"><shadow type=\"text\" id=\"Mbr%{F__rcl4mYyAZ,fr\"><field name=\"TEXT\">local network is connected</field></shadow><block type=\"text_add_str\" id=\"attbV8b$+_Hr2QW_X6=*\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"KWzci0Uxx3lk:KoQ;u~~\"><field name=\"TEXT\">Text:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_text\" id=\"+r/B}xGJU~v+EFa!^Fw2\"></block></value></block></value><next><block type=\"label_set_text\" id=\"^l)^;FS%v#RDQ#~4zB`j\"><field name=\"NAME\">label1</field><value name=\"TEXT\"><shadow type=\"text\" id=\"!7ZSv15v%cI;P/oh%m(L\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"8DX~`I$V%`Ng4ilbCSfO\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"Y#h?Vl8t89zS-|!lA2W@\"><field name=\"TEXT\">Status Code:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_status_code\" id=\"-Cg1g0.;T?j)x1EEsPa6\"></block></value></block></value><next><block type=\"label_set_text\" id=\"aFNfl)|H`]9yu|CVrRbb\"><field name=\"NAME\">label2</field><value name=\"TEXT\"><shadow type=\"text\" id=\"!7ZSv15v%cI;P/oh%m(L\"><field name=\"TEXT\">Label</field></shadow><block type=\"text_add_str\" id=\"CgD/E0pXvq(MbHhKL|Gt\"><value name=\"VALUE1\"><shadow type=\"text\" id=\"PPt~Ykamez4+RCPaj0m+\"><field name=\"TEXT\">Text:</field></shadow></value><value name=\"VALUE2\"><block type=\"http_get_text\" id=\"o*=S}OsEB(:]{Hc,}/(p\"></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block><block type=\"text_print\" id=\"@NX6C]lS(r5`Iu$ziik)\" disabled=\"true\" x=\"170\" y=\"1020\"><value name=\"TEXT\"><shadow type=\"text\" id=\"vp@)8o%nLwps?#oE9R_O\"><field name=\"TEXT\">local network is connected</field></shadow><block type=\"http_get_status_code\" id=\"CzoY6]o@t[?E,/_E6xp-\" disabled=\"true\"></block></value></block>","screen":[{"simulationName":"Built-in","type":"builtin","width":240,"height":135,"scale":0.49,"screenName":"","blockId":"","screenColorType":0,"id":"builtin","createTime":1766025581178}],"logicWhenNum":0,"customList":[]}
0 commit comments