前端显示版本号

This commit is contained in:
zogodo
2020-02-08 22:24:40 +08:00
parent 2cf0aba49e
commit fdd13c9441
6 changed files with 14 additions and 6 deletions

View File

@@ -105,10 +105,10 @@ exit:
static int HttpGetTc1Status(httpd_request_t *req)
{
const unsigned char* sockets = GetSocketStatus();
char* tc1_status = malloc(391);
char* tc1_status = malloc(412);
sprintf(tc1_status, TC1_STATUS_JSON, sockets, ip_status.mode,
sys_config->micoSystemConfig.ssid, sys_config->micoSystemConfig.user_key,
ap_name, ELAND_AP_KEY, "MQTT.ADDR", 1883, ip_status.ip, ip_status.mask, ip_status.gateway, 0L);
ap_name, ELAND_AP_KEY, "MQTT.ADDR", 1883, VERSION, ip_status.ip, ip_status.mask, ip_status.gateway, 0L);
OSStatus err = kNoErr;
send_http(tc1_status, strlen(tc1_status), exit, &err);