mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
/status 多加点信息
This commit is contained in:
@@ -68,7 +68,7 @@ static int HttpGetTc1Status(httpd_request_t *req)
|
||||
char* tc1_status = malloc(256);
|
||||
sprintf(tc1_status, TC1_STATUS_JSON, sockets, ip_status.mode,
|
||||
sys_config->micoSystemConfig.ssid, sys_config->micoSystemConfig.user_key,
|
||||
ELAND_AP_SSID, ELAND_AP_KEY, ip_status.ip, ip_status.mask, ip_status.gateway);
|
||||
ELAND_AP_SSID, ELAND_AP_KEY, "MQTT.ADDR", 1883, ip_status.ip, ip_status.mask, ip_status.gateway, time(NULL));
|
||||
|
||||
OSStatus err = kNoErr;
|
||||
send_http(tc1_status, strlen(tc1_status), exit, &err);
|
||||
|
||||
@@ -51,9 +51,12 @@
|
||||
'station_pwd':'%s',\
|
||||
'ap_ssid':'%s',\
|
||||
'ap_pwd':'%s',\
|
||||
'mqtt_addr':'%s',\
|
||||
'mqtt_port':%d,\
|
||||
'ip':'%s',\
|
||||
'mask':'%s',\
|
||||
'gateway':'%s'\
|
||||
'gateway':'%s',\
|
||||
'start_time':%d\
|
||||
}"
|
||||
|
||||
#define POWER_INFO_JSON "{'idx':%d,'len':%d,'powers':[%s]}"
|
||||
|
||||
Reference in New Issue
Block a user