File-based MQTT emulation: Difference between revisions
From OPC Labs Knowledge Base
(Created page with "Category:Communication packages Category:MQTT This communication package emulates a function of an MQTT broker by storing the messages in form of files in directories...") |
|||
Line 24: | Line 24: | ||
|ClearRootDirectory | |ClearRootDirectory | ||
|System.Boolean | |System.Boolean | ||
| | |Determines whether the root directory will be cleared (recursively) when the message channel starts. Default is 'false'. | ||
|- | |- | ||
|PhysicalFileProviderRoot | |PhysicalFileProviderRoot | ||
|System.String | |System.String | ||
| | |The directory path in the physical file system where the root topic will reside. | ||
|} | |} |
Revision as of 10:05, 18 April 2021
This communication package emulates a function of an MQTT broker by storing the messages in form of files in directories of a file system.
See Using communication packages for instructions on how to select the communication package, and configure it.
The file-based MQTT emulation is only in the MQTT client role only.
The type name of the message channel object is: OpcLabs.BaseLib.Communication.Mqtt.FileMqttMessageChannel,OpcLabs.BaseLib .
Opening the channel
URL string
The URL string, if provided by the host software, is ignored.
Interface name
The interface name, if provided by the host software, is ignored.
Configuration
The table below lists the available properties, their types, and descriptions.
Property | Type | Description |
---|---|---|
ClearRootDirectory | System.Boolean | Determines whether the root directory will be cleared (recursively) when the message channel starts. Default is 'false'. |
PhysicalFileProviderRoot | System.String | The directory path in the physical file system where the root topic will reside. |