MTConnect.NET-AgentModule-MqttBroker implements 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-MqttBroker
This Agent Module serves data via an Internal MQTT Broker
modules:
- mqtt-broker:
port: 1883
topicPrefix: MTConnect
topicStructure: Document
server - The MQTT broker hostname to bind to
port - The MQTT broker port number to bind to
timeout - The timeout (in milliseconds) to use for connection and read/write
qos - Sets the Quality Of Service (QoS) to use. 0 = At Most Once, 1 = At least Once, 2 = Exactly Once
initialDelay - The time (in milliseconds) to delay after initial Module start (to allow for TCP binding)
restartInterval - The time (in milliseconds) to delay between server start errors
topicPrefix - The prefix to add to the MQTT topics that are published
topicStructure - (Document or Entity) Sets how MQTT topics and messages are stuctured
currentInterval - Sets the Interval (in milliseconds) to send Current messages at
sampleInterval - Sets the Interval (in milliseconds) to send Sample messages at
documentFormat - The Document Format ID to use to format the payload
indentOutput - Sets whether to indent the output in each payload
tls - Sets the TLS settings
pfx - The PFX certificate settings
certificatePath - The path to the (.pfx) filecertificatePassword - The certificate passwordpem - The PEM certificate settings
certificatePath - The path to the (.pem) fileprivateKeyPath - The path to the key containing the private keyprivateKeyPassword - The certificate passwordcertificateAuthority - The path to the (.pem) file containing the Certificate AuthorityverifyClientCertificate - Toggles whether Client Certificate chains are verified ("true" or "false")
This application and it's source code is licensed under the MIT License and is free to use.