Set Value
This command sets a value to the point/set of points and responds with the current value of the point.
#
Command- Sample
- Schema
{ "agent": "agent-name", "command": 333, "msgid": 72, "controllerType": 4, "controller": { "name": "controller-name-1" }, "points": [ { "name": "point-name-1", "value": 100 } ], "publishType": 4}
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "agent": { "type": "string", "description": "Name of the agent" }, "command": { "type": "integer", "description": "Command enum", "const": 333 }, "msgid": { "type": "integer", "description": "Message ID , will be used to send the ACKs" }, "controller": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the controller" } }, "required": ["name"] }, "points": { "type": "array", "items": [ { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the point" }, "value": { "type": "object", "description": "Value of the point" } }, "required": ["name", "value"] } ] }, "controllerType": { "type": "integer", "description": "Controller Type enum", "const": 0 }, "publishType": { "type": "integer", "description": "Publish Type enum", "const": 4 } }, "required": [ "agent", "command", "msgid", "controllerType", "points", "publishType" ]}
#
Agent Response- Sample
- Schema
{ "agent": "agent-name", "controller": { "name": "controller-name-1" }, "controllerType": 0, "publishType": 3, "data": [ { "value": 100, "name": "point-name-1" } ]}
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "agent": { "type": "string", "description": "Name of the agent" }, "controller": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the controller" } }, "required": ["name"] }, "data": { "type": "array", "items": [ { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the point" }, "value": { "type": "object", "description": "Value of the point" } }, "required": ["name", "value"] } ] }, "controllerType": { "type": "integer", "description": "Controller Type enum", "const": 0 }, "publishType": { "type": "integer", "description": "Publish Type enum", "const": 4 } }, "required": ["agent", "controller", "points", "controllerType", "publishType"]}