Class GetModbusProtocolResponse
java.lang.Object
io.openems.common.jsonrpc.base.JsonrpcMessage
io.openems.common.jsonrpc.base.JsonrpcResponse
io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
io.openems.edge.controller.api.modbus.jsonrpc.GetModbusProtocolResponse
Wraps a JSON-RPC Response to "getModbusProtocol" Request.
{ "jsonrpc": "2.0", "id": "UUID", "result": { "table": [{ "ref": number // start address of the Modbus Record "name": string, "value": string, // value description "unit": string, "type" string }] } }
-
Field Summary
Fields inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
JSONRPC_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObject
Gets the result of thisJsonrpcResponseSuccess
.Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponseSuccess
from, toJsonObject
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcResponse
from, getId
Methods inherited from class io.openems.common.jsonrpc.base.JsonrpcMessage
toString
-
Constructor Details
-
GetModbusProtocolResponse
-
-
Method Details
-
getResult
public com.google.gson.JsonObject getResult()Description copied from class:JsonrpcResponseSuccess
Gets the result of thisJsonrpcResponseSuccess
.- Specified by:
getResult
in classJsonrpcResponseSuccess
- Returns:
- a JsonObject with the 'result' property of the response
-