Overview
The "CreatePersistenceTopic" and "AlterPersistenceTopic" operations share the same properties. For this reason, they are combined together in the documentation. Notes on each property describe the differences between the two operations:
Required Properties
Optional Properties to configure the Persistence Topic
Optional Properties to configure the Persistence Table
Optional properties to configure the Persistence Database
Optional properties for interpreting values stored in JSON properties
Optional properties to configure an external MQTT Broker as message source
Optional properties to configure a Store & Forward Topic
See MQTT Store & Forward.
CreatePersistenceTopic Operation
The "CreatePersistenceTopic" operation sets up automatic data persistence in c-tree. It creates a Persistence Topic in the FairCom MQTT Broker. This causes c-tree to listen for MQTT messages published with that topic and to extract data from those messages and to persist them to a table.
The following needs to be done to create a Persistence Topic:
If the JSON document is invalid or incomplete, c-tree does not create the persistence topic and it logs an error to its CTSTATUS.FCS file.
AlterPersistenceTopic Operation
The "AlterPersistenceTopic" operation modifies an existing Persistence Topic in the FairCom MQTT Broker.
The JSON documents for altering and creating Persistence Topics are identical except for the JSON "operation" property.
c-tree looks at the settings in the "AlterPersistenceTopic" JSON object and compares them to existing settings of the Persistence Topic. It identifies the differences and modifies the Persistence Topic.
The Constraints section below indicates which properties can and cannot be modified.