This commit is contained in:
parent
ebf9c21307
commit
04fc431607
|
@ -339,12 +339,10 @@ int main (void)
|
|||
BEEP_ALARM;
|
||||
relay_state_flag = 1;
|
||||
EMV_CLOSE_VALVE;
|
||||
LOG_D("EMV_CLOSE_VALVE 1");
|
||||
#if (IOT_MODULE_SWITCH == 1)
|
||||
Nt26k_Send_Event (kNt26kAlarmEvent);
|
||||
#endif
|
||||
rt_thread_mdelay(5000);
|
||||
LOG_D("EMV_CLOSE_VALVE 2");
|
||||
rt_thread_mdelay(6000);
|
||||
EMV_CLOSE_VALVE;
|
||||
}
|
||||
else if (received_event & Get_Sys_Event_Flag (kAlarmRcyEvent)) // 报警恢复
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-10-09 08:42:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2025-01-18 15:39:10
|
||||
* @LastEditTime: 2025-01-20 11:31:31
|
||||
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -819,7 +819,7 @@ int Nt26k_Process_Events(Nt26kEvent nt26k_recv_event, struct at_device *device,
|
|||
}
|
||||
else
|
||||
{
|
||||
LOG_E("nt26k send cmd failed\n"); // 收不到说明断网了,重连下10s后再发送
|
||||
LOG_E("nt26k send cmd failed\n"); // 收不到两种情况,1,在平台未注册,2:断网
|
||||
LOG_D("rt_sem_release (nt26k_disconnect_sem)");
|
||||
nt26k_conncet_tcp_flag = 0;
|
||||
rt_thread_mdelay(1);
|
||||
|
|
Loading…
Reference in New Issue