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) ... ... @@ -797,15 +797,11 @@ 797 797 798 798 799 799 800 - 801 - 802 802 | 803 803 | |[[image:image-20220709165402-11.png]] 804 804 805 805 806 806 807 - 808 - 809 809 1. **Test with MQTT.fx tool** 810 810 811 811 Click “View Setting” to get the “Broker Adress” ... ... @@ -821,8 +821,6 @@ 821 821 822 822 823 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)