Discover Points
This command discovers all the data points under a controller and responds with a list of all found data points. Can discover points for only one controller at a time.
#
Command- Sample
- Schema
{ "agent": "agentName", "command": 251, "controller": { "name": "controller-name-1" }, "controllerType": 0}
{ "$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": 251 }, "msgid": { "type": "integer", "description": "Message ID , will be used to send the ACKs" }, "controller": { "type": "object", "description":"This object depends on the type of the controller", "properties": { "name": { "type": "string", "description": "Name of the controller" }, "required":["name"] }, "controllerType": { "type": "integer", "description": "Controller Type enum", "const": 0 } }, "required": [ "agent", "command", "controller", "controllerType" ]}
#
Agent Response- Sample
- Schema
{ "agent": "agent-name", "controller": { "name": "controller-name-1" }, "data": [ { "name": "point-name-1" }, { "name": "point-name-2" } ], "controllerType": 0, "publishType": 4}
{ "$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", "description": "This object depends on the controller type", "properties": { "name": { "type": "string", "description": "Name of the point" }, "path": { "type": "string", "description": "path of the point. If there is no path, name can be used here" } }, "required": ["name"] } ] }, "controllerType": { "type": "integer", "description": "Controller Type enum", "const": 0 }, "publishType": { "type": "integer", "description": "Publish Type enum", "const": 4 } }, "required": ["agent", "controller", "data", "controllerType", "publishType"]}