fix webapp url cfg save!

This commit is contained in:
btsimonh
2022-02-16 19:48:19 +00:00
parent 4efe96af49
commit 44e09f42d3
3 changed files with 9 additions and 5 deletions

View File

@ -503,8 +503,8 @@ static int http_rest_get_info(http_request_t *request){
hprintf128(request, "\"ip\":\"%s\",", getMyIp());
hprintf128(request, "\"mac\":\"%s\",", getMACStr(macstr));
hprintf128(request, "\"mqtthost\":\"%s:%d\",", CFG_GetMQTTHost(), CFG_GetMQTTPort());
hprintf128(request, "\"mqtttopic\":\"%s\"}", CFG_GetShortDeviceName());
hprintf128(request, "\"mqtttopic\":\"%s\",", CFG_GetShortDeviceName());
hprintf128(request, "\"webapp\":\"%s\"}", CFG_GetWebappRoot());
poststr(request, NULL);
return 0;