mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-11 04:28:14 +08:00
TODO
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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); //每小时校准一次
|
||||
|
||||
|
||||
Reference in New Issue
Block a user