/status 多加点信息

This commit is contained in:
zogodo
2019-10-23 18:22:47 +08:00
parent db867966e0
commit 2e8691d2b6
2 changed files with 5 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ static int HttpGetTc1Status(httpd_request_t *req)
char* tc1_status = malloc(256); char* tc1_status = malloc(256);
sprintf(tc1_status, TC1_STATUS_JSON, sockets, ip_status.mode, sprintf(tc1_status, TC1_STATUS_JSON, sockets, ip_status.mode,
sys_config->micoSystemConfig.ssid, sys_config->micoSystemConfig.user_key, 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; OSStatus err = kNoErr;
send_http(tc1_status, strlen(tc1_status), exit, &err); send_http(tc1_status, strlen(tc1_status), exit, &err);

View File

@@ -51,9 +51,12 @@
'station_pwd':'%s',\ 'station_pwd':'%s',\
'ap_ssid':'%s',\ 'ap_ssid':'%s',\
'ap_pwd':'%s',\ 'ap_pwd':'%s',\
'mqtt_addr':'%s',\
'mqtt_port':%d,\
'ip':'%s',\ 'ip':'%s',\
'mask':'%s',\ 'mask':'%s',\
'gateway':'%s'\ 'gateway':'%s',\
'start_time':%d\
}" }"
#define POWER_INFO_JSON "{'idx':%d,'len':%d,'powers':[%s]}" #define POWER_INFO_JSON "{'idx':%d,'len':%d,'powers':[%s]}"