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