MTConnect.NET-AdapterModule-MQTT implements an adapter to send input data to an MQTT Broker to be read by an MTConnect Agent for Adapter Applications. Supports MTConnect Versions up to 2.5. Supports .NET Framework 4.6.1 up to .NET 9
$ dotnet add package MTConnect.NET-AdapterModule-MQTT
This Adapter Module sends input data to an MQTT Broker that can be read by an MTConnect Agent
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.
- mqtt:
port: 1883
server: localhost
topic: MTConnect/Input
port - The port number to read from.
server - The server hostname or IP address
topic - The MQTT topic to publish to
All Payloads are sent compressed using gzip and follow the format below:
[TOPIC]/Observations
[
{
"timestamp": "2023-12-06T23:15:01.7754921Z",
"observations": [
{
"dataItemKey": "avail",
"values": {
"result": "AVAILABLE"
}
},
{
"dataItemKey": "estop",
"values": {
"result": "ARMED"
}
},
{
"dataItemKey": "system",
"values": {
"level": "WARNING",
"nativeCode": "404"
}
},
{
"dataItemKey": "system",
"values": {
"level": "WARNING",
"nativeCode": "405"
}
}
]
},
{
"timestamp": "2023-12-06T23:16:45.456725Z",
"observations": [
{
"dataItemKey": "system",
"values": {
"level": "NORMAL"
}
},
{
"dataItemKey": "processTimer",
"values": {
"result": "12",
"resetTriggered": "SHIFT"
}
},
{
"dataItemKey": "vars",
"values": {
"DATASET[E100]": "12.123",
"DATASET[E101]": "6574"
}
},
{
"dataItemKey": "toolTable",
"values": {
"TABLE[T1][LENGTH]": "142.654",
"TABLE[T1][DIAMETER]": "12.496",
"TABLE[T2][LENGTH]": "135.611",
"TABLE[T2][DIAMETER]": "5.980"
}
}
]
}
]
This application and it's source code is licensed under the MIT License and is free to use.