mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改网关参数设置接口
This commit is contained in:
@@ -1667,7 +1667,7 @@ Errcode HttpEntity::updateGatewayParams(const httplib::Request& req, njson& json
|
||||
|
||||
if (station)
|
||||
{
|
||||
params.get("work_mode", station->workMode);
|
||||
//params.get("work_mode", station->workMode);
|
||||
params.get("soc_min", station->gatewayParam.socMin); // 储能放电下限值 SOC 40038 (%, 0-99)
|
||||
params.get("soc_max", station->gatewayParam.socMax); // 储能充电上限值 SOC 40039 (%:1-100)
|
||||
params.get("capacity", station->gatewayParam.capacity); // 台区变压器容量 40040 (KVA 160-1600)
|
||||
@@ -1677,7 +1677,7 @@ Errcode HttpEntity::updateGatewayParams(const httplib::Request& req, njson& json
|
||||
params.get("backflow", station->gatewayParam.backflow); // 防逆流回差 40058(1KW 10-300)
|
||||
params.get("overload", station->gatewayParam.overload); // 防过载回差 40059(1KW 10-300)
|
||||
|
||||
station->setGarewayWorkMode();
|
||||
station->setGarewayParams();
|
||||
return Errcode::OK;
|
||||
}
|
||||
return Errcode::ERR_PARAM;
|
||||
|
||||
Reference in New Issue
Block a user