Changes for page 2 Script

Last modified by Devin Chen on 2025/06/06 14:03

From version 13.1
edited by Leo Wei
on 2022/07/09 17:41
Change comment: There is no comment for this version
To version 15.2
edited by Leo Wei
on 2022/07/09 17:46
Change comment: There is no comment for this version

Summary

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 -    addr_setword("@Timer",timer)
49 + timer = timer + 1
50 + addr_setword("@Timer",timer)
51 51  else
52 -    timer = 0
53 -    addr_setword("@Timer",timer)
52 + timer = 0
53 + addr_setword("@Timer",timer)
54 54  end
55 55  ------send sms & output Y0------
56 56  if timer > 5 then
57 -    if tag == 0 then
58 -        send_sms_ira("19859254700","alarm trigger")
59 -        addr_setbit("@Tag",1)
60 -    end
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,16 +796,10 @@
796 796  
797 797  
798 798  
799 -
800 -
801 -
802 802  |
803 803  | |[[image:image-20220709165402-11.png]]
804 804  
805 805  
806 -
807 -
808 -
809 809  1. **Test with MQTT.fx tool**
810 810  
811 811  Click “View Setting” to get the “Broker Adress”
... ... @@ -820,9 +820,6 @@
820 820  
821 821  
822 822  
823 -
824 -
825 -
826 826  |
827 827  | |[[image:image-20220709165402-14.png]]
828 828  
... ... @@ -865,7 +865,6 @@
865 865  |
866 866  | |[[image:image-20220709165402-20.png]]
867 867  
868 -
869 869  sprint = print
870 870  
871 871  ~-~-Cloud mode interface to obtain the MQTT information configured by the cloud platform: (5 returns, namely the server address, client ID, connection table, last word table, certificate table)