diff --git a/TC1/user_mqtt_client.h b/TC1/user_mqtt_client.h index 4b127f7..f42d056 100644 --- a/TC1/user_mqtt_client.h +++ b/TC1/user_mqtt_client.h @@ -5,7 +5,7 @@ #include "mico.h" #define MQTT_CLIENT_KEEPALIVE 30 -#define MQTT_CLIENT_SUB_TOPIC1 "device/ztc1/set" +#define MQTT_CLIENT_SUB_TOPIC1 "device/ztc1/set" #define MQTT_CLIENT_PUB_TOPIC "device/ztc1/%s/state" #define MQTT_CMD_TIMEOUT 5000 // 5s #define MQTT_YIELD_TMIE 5000 // 5s diff --git a/TC1/user_sntp.c b/TC1/user_sntp.c index a59c7a0..fb52e8d 100644 --- a/TC1/user_sntp.c +++ b/TC1/user_sntp.c @@ -40,7 +40,8 @@ static void sntp_time_call_back(void) void sntp_init(void) { - struct in_addr ipp;ipp.s_addr=0xd248912c; + struct in_addr ipp; + ipp.s_addr=0xd248912c; sntp_set_server_ip_address (0,ipp); sntp_start_auto_time_sync (15000, sntp_time_call_back); //每小时校准一次 diff --git a/TODO.txt b/TODO.txt index ebbbc7f..d02c477 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,3 +1,11 @@ + +测试纳秒是否正常 +文件分类 + time_server/user_sntp user_rtc + ota_server/user_ota + mqtt_server/cJSON->c_json user_mqtt_client user_function + + 1. AP名拼Mac地址 2. Home Assistant 3. Web系统日志