![]()
Contents
Cirrus Link Resources
Cirrus Link Website![]()
Contact Us (Sales/Support)![]()
Forum![]()
Cirrus Link Modules Docs for Ignition 7.9.x![]()
Inductive Resources
Ignition User Manual![]()
Knowledge Base Articles![]()
Inductive University![]()
Forum![]()
The following API modules calls are available for the MQTT Distributor Module and can be executed within any of the available Ignition Designer Script Console scopes.
...
Anchor createConfig createConfig
system.cirruslink.distributor.createConfig(type, props) → voidParametersString typeThe type of configuration to create with valid options:
UsersMap propsDictionary of properties making up the configuration with the following keys and datatypes:UsersId (long)Username (str)Password (str)ACLs (str)Return ValueNoneA map representing the newly created configuration after it has been written to the database. (added 4.0.16)Anchor readConfig readConfig
system.cirruslink.distributor.readConfig(type) → List ParametersString typeThe type of configuration to read with valid options:
GeneralUsersReturn ValueA List of Dictionaries of properties making up the configurations with the following keys and datatypes: GeneralId (long)Enabled (bool)EnableTCP (bool)Port (int)EnableWebsocket (bool)WebsocketPort (int)EnableTLS (bool)SecurePort (int)EnableSecureWebsocket (bool)SecureWebsocketPort (int)AllowAnonymousConnections (bool)UsersId (long)Username (str)Password (str)ACLs (str)Anchor updateConfig updateConfig
system.cirruslink.distributor.updateConfig(type, id, collisionPolicy, props) → voidParametersString typeThe type of configuration to update with valid options:
GeneralUsersLong idThe ID of the record to updateString collisionPolicyEither "MergeOverwrite" or "Overwrite""MergeOverwrite" will replace the existing properties in the record ID with only those included in the call"Overwrite" will replace all properties in the record ID with those in the callMap propsDictionary of properties making up the configuration with the following keys and datatypes:GeneralId (long)Enabled (bool)EnableTCP (bool)Port (int)EnableWebsocket (bool)WebsocketPort (int)EnableTLS (bool)SecurePort (int)EnableSecureWebsocket (bool)SecureWebsocketPort (int)AllowAnonymousConnections (bool)UsersId (long)Username (str)Password (str)ACLs (str)Return ValueNoneA map representing the updated configuration after it has been written to the database. (added 4.0.16)Anchor deleteConfig deleteConfig
system.cirruslink.distributor.deleteConfig(type, id) → voidParametersString typeThe type of configuration to delete with valid options:
UsersLong idThe ID of the record to deleteReturn ValueNoneTrue if the record was successfully deleted otherwise False is returned (added 4.0.16)