zmqmanaged Lua Interface¶
get¶
Get a pointer to the ZMQManaged object
- Arguments:
- any ptr Pointer to Module object
- Returns:
- zmqmanaged ptr Pointer to casted ZMQManaged object
Example
ptr = zmqmanaged:.get(ptr)
getConfig¶
Get the configuration object for the plugin
Arguments:
- Returns:
- table obj Map with configurations
Example
obj = zmqmanaged:.getConfig()
saveConfig¶
Save the configuration object for the plugin
- Arguments:
- any ptr Pointer to ZMQManaged object
- table new_config Map with configurations
Example
zmqmanaged:.saveConfig(ptr,new_config)
getName¶
Get the plugin name
Arguments:
- Returns:
- string name Plugin Name
Example
name = zmqmanaged:.getName()
connect¶
Connect to the ZMQ server
Arguments:
- Returns:
- string name Plugin Name
Example
name = zmqmanaged:.connect()
readMessage¶
Read a message from the ZMQ client
Arguments:
- Returns:
- string msg Representation from the underliyng Json ZMQ message
Example
msg = zmqmanaged:.readMessage()
writeMessage¶
Write a message to the ZMQ client
- Arguments:
- string topic ZMQ Topic to write to
- string msg Object to send
Example
zmqmanaged:.writeMessage(topic,msg)