MTConnect.NET-AgentModule-MqttAdapter implements an Adapter to read data from an MQTT Broker for use with the MTConnectAgentApplication class in the MTConnect.NET-Applications-Agent library. Supports MTConnect Versions up to 2.5. Supports .NET Framework 4.6.1 up to .NET 9
$ dotnet add package MTConnect.NET-AgentModule-MqttAdapter
This Agent Module implements an adapter to read from an MQTT broker
Note: This Module is still under development and may be deprecated in the future. Please feel free to leave feedback or create Issues on GitHub.
modules:
- mqtt-adapter:
server: localhost
port: 1883
topicPrefix: input
deviceKey: M12346
server - The MQTT broker hostname
port - The MQTT broker port number
timeout - The timeout (in milliseconds) to use for connection and read/write
reconnectInterval - The interval (in milliseconds) to delay between disconnections
username - Sets the Username to use for authentication
password - Sets the Password to use for authentication
clientId - Sets the Client ID to use for the connection
cleanSession - Sets the CleanSession flag (true or false)
qos - Sets the Quality Of Service (Qos) to use. 0 = At Most Once, 1 = At least Once, 2 = Exactly Once
certificateAuthority - The path to the Certificate Authority file
pemCertificatePath - The path to the PEM Certificate (.pem) file
pemPrivateKey - The path to the PEM Private Key file
allowUntrustedCertificates - Sets whether to validate the certificate chain (true or false)
useTls - Sets whether to use TLS or not (true or false)
topicPrefix - The MQTT topic prefix to subscribe to
deviceKey - The UUID or Name of the Device to read data for
DocumentFormat - The Document Format ID to use to format the input data
[TOPIC_PREFIX]/observations
[TOPIC_PREFIX]/assets
[TOPIC_PREFIX]/device
This application and it's source code is licensed under the MIT License and is free to use.