This commit is contained in:
parent
a68520e7a7
commit
85b7fcf139
|
@ -29,9 +29,11 @@
|
|||
#define SYS_RELAY_SWITCH (0X04U)
|
||||
#define SYS_ALARM_VALVE_MAX (0X30U)
|
||||
|
||||
#define SYS_IOT_URL ("8.130.127.158")
|
||||
#define SYS_IOT_PORT ("7101")
|
||||
// #define SYS_IOT_URL ("8.130.127.158")
|
||||
// #define SYS_IOT_PORT ("7101")
|
||||
|
||||
#define SYS_IOT_URL ("8.130.117.149")
|
||||
#define SYS_IOT_PORT ("7137")
|
||||
// 定义宏来打印编译时间和日期
|
||||
#define COMPILE_TIME \
|
||||
do { \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-10-09 08:42:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2025-01-24 08:43:53
|
||||
* @LastEditTime: 2025-01-24 09:59:17
|
||||
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -178,6 +178,10 @@ void Nt26k_Send_Event(Nt26kEvent event_type)
|
|||
rt_event_send(&at_device_event, Nt26k_Get_Event_Flag(event_type));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rt_event_send(&at_device_event, Nt26k_Get_Event_Flag(event_type));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1118,7 +1122,7 @@ void Handle_Sever_Addr_Set(struct Nt26k_Ops *ops)
|
|||
else
|
||||
{
|
||||
LOG_D("服务器地址修改成功\n");
|
||||
if(ops->Resp(ops, DATA_SERIAL_NUM, CMD_TYPE_INSTRUCTION_REPLY, DEVICE_TYPE_NT26K, INSTRUCTION_DOWN_SEVER_ADDR, temp, RESPONSE_CODE_SUCCESS)==RT_EOK)
|
||||
if(ops->Resp(ops, DATA_SERIAL_NUM, CMD_TYPE_INSTRUCTION_REPLY, DEVICE_TYPE_NT26K, INSTRUCTION_DOWN_SEVER_ADDR, temp, RESPONSE_CODE_SUCCESS) == RT_EOK)
|
||||
{
|
||||
Flash_Set_WorkDuration(work_duration);
|
||||
rt_thread_mdelay(100);
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
/*使用动态日志及密码功能时,需开启宏 FINSH_USING_AUTH ULOG_USING_FILTER ENABLE_LOG_ALL ULOG_OUTPUT_LVL = 7 以及设置ulog.c 1522行 输出等级为0*/
|
||||
/**/
|
||||
#define FINSH_USING_AUTH //开启终端密码登录功能
|
||||
#define ULOG_USING_FILTER //开启动态修改日志等级 默认修改在ulog.c 1522行
|
||||
// #define FINSH_USING_AUTH //开启终端密码登录功能
|
||||
// #define ULOG_USING_FILTER //开启动态修改日志等级 默认修改在ulog.c 1522行
|
||||
|
||||
#define ENABLE_LOG_ALL
|
||||
#define TEST_ENABLE //打开所有的终端测试程序
|
||||
|
@ -24,8 +24,8 @@
|
|||
#define IOT_MODULE_SWITCH 1 //开启物联网功能
|
||||
|
||||
// #ifdef FINSH_USING_AUTH
|
||||
// #define AT_USING_CLI
|
||||
// #define AT_PRINT_RAW_CMD
|
||||
#define AT_USING_CLI
|
||||
#define AT_PRINT_RAW_CMD
|
||||
// #endif
|
||||
|
||||
/* RT-Thread Kernel */
|
||||
|
|
Loading…
Reference in New Issue