API Reference
First Class functions
|
Establishes a connection to the RcWebApi Commands Socket and returns CommandServer object which can be used to interact with the socket. |
|
Establishes a connection to the RcWebApi Subscribe Socket and returns SubscribeServer object which can be used to interact with the socket. |
|
Returns the value of a given variable on the PLC |
|
Creates a function to get variable values with a fixed prefix and server. |
|
Sets a variable on the PLC |
|
Creates a function to set variable values with a fixed prefix and server. |
AuthMgr
|
Holds the auth_token, client_id, PCL IP and robot name |
|
Authenticate to the PLC. |
Returns the Authtoken used to connect to the sockts. |
|
Returns the host ip address. |
|
Returns the robot name. |
|
Returns the client id. |
|
|
|
|
CommandServer
Holds the connection to the RcWebApi's command socket. |
|
Disconnects from the socket. |
|
Returns whether the socket is connected or not. |
|
|
Sends the given command and it's parameters to the PLC returns a ticket |
|
Sends the given command and it's parameters to the PLC and waits till it's finished. |
Ticket
|
A Ticket represents one command sent to the socket. |
|
Waits and blocks until the ticket is completed or the timeout is reached. |
Unique request id for this ticket. |
|
Current state of the Ticket |
SubscribeServer
Holds the connection to the RcWebApi's subscribe socket. |
|
Unsubscribes from all active subscriptions and closes the connection to the socket. |
|
Returns whether the socket ist connected or not. |
|
|
Subscribes to a topic. |
|
Unsubscribe from a previously subscribed topic. |