Class SetNetworkConfigRequest
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
io.openems.common.jsonrpc.base.JsonrpcRequest
io.openems.edge.core.host.jsonrpc.SetNetworkConfigRequest
Updates the current network configuration.
{ "jsonrpc": "2.0", "id": "UUID", "method": "setNetworkConfig", "params": { "interfaces": { [name: string]: { "dhcp"?: boolean, "linkLocalAddressing"?: boolean, "gateway"?: string, "dns"?: string, "addresses"?: [{ "label": string, "address": string, "subnetmask": string }] } } }
-
Field Summary
FieldsFields inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
DEFAULT_TIMEOUT_SECONDS, id, NO_TIMEOUT, timeoutOpt
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetNetworkConfigRequest
Parses a genericJsonrpcRequest
to aSetNetworkConfigRequest
.List<NetworkInterface<?>>
Gets the request network interfaces.com.google.gson.JsonObject
Gets the paramsJsonObject
of theJsonrpcRequest
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcRequest
getId, getTimeout, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.AbstractJsonrpcRequest
getFullyQualifiedMethod, getMethod
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
from, from, toString
-
Field Details
-
METHOD
- See Also:
-
-
Constructor Details
-
SetNetworkConfigRequest
-
-
Method Details
-
from
public static SetNetworkConfigRequest from(JsonrpcRequest r) throws OpenemsError.OpenemsNamedException Parses a genericJsonrpcRequest
to aSetNetworkConfigRequest
.- Parameters:
r
- theJsonrpcRequest
- Returns:
- the
SetNetworkConfigRequest
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getParams
public com.google.gson.JsonObject getParams()Description copied from class:AbstractJsonrpcRequest
Gets the paramsJsonObject
of theJsonrpcRequest
.- Specified by:
getParams
in classAbstractJsonrpcRequest
- Returns:
- the params as
JsonObject
-
getNetworkInterface
Gets the request network interfaces.- Returns:
- the network interfaces
-