This commit is contained in:
小马_666 2025-01-20 11:34:18 +08:00
parent ebf9c21307
commit 04fc431607
2 changed files with 3 additions and 5 deletions

View File

@ -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)) // 报警恢复

View File

@ -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);