mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 23:45:32 +00:00
fix webapp url cfg save!
This commit is contained in:
@ -659,8 +659,10 @@ int HTTP_ProcessPacket(http_request_t *request) {
|
||||
|
||||
if(http_getArg(urlStr,"url",tmpA,sizeof(tmpA))) {
|
||||
CFG_SetWebappRoot(tmpA);
|
||||
hprintf128(request,"Webapp url set to %s", tmpA);
|
||||
} else {
|
||||
poststr(request,"Webapp url not set");
|
||||
}
|
||||
poststr(request,"Webapp url set!");
|
||||
|
||||
poststr(request,"<br>");
|
||||
poststr(request,htmlReturnToCfg);
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user