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 - timer = timer + 1 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,13 +436,8 @@ 436 436 end 437 437 {{/code}} 438 438 439 -== **2.3 How to configure the Huawei platform?** == 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)** == 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 - 446 446 1.Register a account: [[https:~~/~~/www.huaweicloud.com/intl/en-us/s/JUlPVERNJQ>>https://www.huaweicloud.com/intl/en-us/s/JUlPVERNJQ]] 447 447 448 448 2.log in the Huawei IOTDA ... ... @@ -801,10 +801,14 @@ 801 801 802 802 803 803 799 + 800 + 804 804 | 805 805 | |[[image:image-20220709165402-11.png]] 806 806 807 807 805 + 806 + 808 808 1. **Test with MQTT.fx tool** 809 809 810 810 Click “View Setting” to get the “Broker Adress” ... ... @@ -819,6 +819,8 @@ 819 819 820 820 821 821 821 + 822 + 822 822 | 823 823 | |[[image:image-20220709165402-14.png]] 824 824