Go to documentation repository
The OPCIE object corresponds to the HTML interface system object.
The list of commands and parameters for the OPCIE object is listed in the table:
| Command | Parameters | Comment |
|---|---|---|
BuildConnection | Connection parameters | Establish a connection with the server |
NotifyEventStr | string | Notify about the event transferred as a string |
NotifyEvent | msg_object (message object) | Notify about the event using a previously created message object |
CreateMsg | NA | Create a message object for further work with it |
DoReactStr | string | Run the reaction transferred as a string |
DoReact | msg_object (message object) | Run the reaction using a previously created message object |
GetMySlaveId | NA | Return the ID (name) of the parent object |
The OPCIE object sends the events listed in the table. The procedure is started when the corresponding event occurs.
Event | Parameters | Comment |
|---|---|---|
ACTIVATE_OBJECT | Page ID | Activate the page in the interface |
OBJECT_STATE | Camera ID | Request the state of the camera or other object |
FUNC | func_name (function name) | Call up a page or run a function |
REQUEST | core_func objtype func_name start count and others | A general request to the system core. Parameters can be different |
core_func | Depend on the function | Standard command for working with the core. It is a part of the REQUEST event |
List of possible core_func values for the REQUEST event:
The core_func value | Parameters | Comment |
|---|---|---|
getobjectids | Objtype<> func_name<getobjectids_resp> start<0> count<20> | Get a list of object IDs of the specified type |
getobjectname | Objtype<> objId<> func_name<> | Get the name of the object by its ID and type |
updateobjectstate | Objtype<> objId<> func_name<> | Request an update of the object state |
getobjectchildids | Objtype<> objId<> childtype<> func_name<> | Get a list of child objects of the specified type |