Changes for page 2 Script
Last modified by Devin Chen on 2025/06/06 14:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -46,18 +46,18 @@ 46 46 local tag = addr_getbit("@Tag") 47 47 ------lasting time------ 48 48 if temp1 > 5 and temp2 > 10 and temp3 < 20 then 49 - 50 - 49 + timer = timer + 1 50 + addr_setword("@Timer",timer) 51 51 else 52 - 53 - 52 + timer = 0 53 + addr_setword("@Timer",timer) 54 54 end 55 55 ------send sms & output Y0------ 56 56 if timer > 5 then 57 - 58 - 59 - 60 - 57 + if tag == 0 then 58 + send_sms_ira("19859254700","alarm trigger") 59 + addr_setbit("@Tag",1) 60 + end 61 61 elseif tag == 1 then 62 62 send_sms_ira("19859254700","alarm release") 63 63 addr_setbit("@Tag",0) ... ... @@ -436,8 +436,13 @@ 436 436 end 437 437 {{/code}} 438 438 439 -== **2.3 How to configure the Huawei platform? (✎Note: Huawei IOT DA function is only in China area.If you want this function,you need to use chinese mobile to register)** ==439 +== **2.3 How to configure the Huawei platform?** == 440 440 441 +(% class="box infomessage" %) 442 +((( 443 +✎Note: Huawei IOT DA function is only in China area.If you want this function,you need to use chinese mobile to register 444 +))) 445 + 441 441 1.Register a account: [[https:~~/~~/www.huaweicloud.com/intl/en-us/s/JUlPVERNJQ>>https://www.huaweicloud.com/intl/en-us/s/JUlPVERNJQ]] 442 442 443 443 2.log in the Huawei IOTDA ... ... @@ -796,14 +796,10 @@ 796 796 797 797 798 798 799 - 800 - 801 801 | 802 802 | |[[image:image-20220709165402-11.png]] 803 803 804 804 805 - 806 - 807 807 1. **Test with MQTT.fx tool** 808 808 809 809 Click “View Setting” to get the “Broker Adress” ... ... @@ -818,8 +818,6 @@ 818 818 819 819 820 820 821 - 822 - 823 823 | 824 824 | |[[image:image-20220709165402-14.png]] 825 825