MTConnect.NET-AdapterModule-MQTT 7.2.0.105

dotnet add package MTConnect.NET-AdapterModule-MQTT --version 7.2.0.105
                    
NuGet\Install-Package MTConnect.NET-AdapterModule-MQTT -Version 7.2.0.105
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MTConnect.NET-AdapterModule-MQTT" Version="7.2.0.105" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MTConnect.NET-AdapterModule-MQTT" Version="7.2.0.105" />
                    
Directory.Packages.props
<PackageReference Include="MTConnect.NET-AdapterModule-MQTT" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MTConnect.NET-AdapterModule-MQTT --version 7.2.0.105
                    
#r "nuget: MTConnect.NET-AdapterModule-MQTT, 7.2.0.105"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MTConnect.NET-AdapterModule-MQTT@7.2.0.105
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MTConnect.NET-AdapterModule-MQTT&version=7.2.0.105
                    
Install as a Cake Addin
#tool nuget:?package=MTConnect.NET-AdapterModule-MQTT&version=7.2.0.105
                    
Install as a Cake Tool

MTConnect.NET Logo

MTConnect MQTT Adapter Module

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.

Configuration

modules:
  - mqtt:
      port: 1883
      server: localhost
      topic: MTConnect/Input
  • port - The MQTT broker port number to publish to. Default is 7878, so set this to the port of your broker (ex. 1883).

  • server - The MQTT broker hostname or IP address. Default is localhost

  • topic - The MQTT topic prefix to publish to. There is no default, so this should always be set

  • 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

  • qos - Sets the Quality Of Service (Qos) to use. 0 = At Most Once, 1 = At least Once, 2 = Exactly Once. Default is 0

  • useTls - Sets whether to use TLS or not (true or false)

  • pemCertificate - The path to the PEM Certificate (.pem) file

  • pemPrivateKey - The path to the PEM Private Key file

  • certificateAuthority - The path to the Certificate Authority file. Only used when pemCertificate and pemPrivateKey are both set

  • allowUntrustedCertificates - Sets whether untrusted certificates are accepted (true or false). When true, certificate chain and revocation errors are ignored. Only used when pemCertificate and pemPrivateKey are both set. Default is false

  • reconnectInterval - The interval (in milliseconds) to delay between disconnections. Default is 10000

  • documentFormat - The Document Format ID to use to format the payload. Default is json

Payload

Payloads are formatted using the configured documentFormat and are not compressed. All messages are retained. The topics below are used:

Assets

[TOPIC]/assets

Device

[TOPIC]/device

Observations

[TOPIC]/observations

Observations using the json Document Format follow the format below:

[
	{
		"timestamp": "2023-12-06T23:15:01.7754921Z",
		"observations": [
			{
				"dataItem": "avail",
				"values": {
					"result": "AVAILABLE"
				}
			},
			{
				"dataItem": "estop",
				"values": {
					"result": "ARMED"
				}
			},
			{
				"dataItem": "system",
				"values": {
					"level": "WARNING",
					"nativeCode": "404"
				}
			},
			{
				"dataItem": "system",
				"values": {
					"level": "WARNING",
					"nativeCode": "405"
				}
			}
		]
	},
	{
		"timestamp": "2023-12-06T23:16:45.456725Z",
		"observations": [
			{
				"dataItem": "system",
				"values": {
					"level": "NORMAL"
				}
			},
			{
				"dataItem": "processTimer",
				"values": {
					"result": "12",
					"resetTriggered": "SHIFT"
				}
			},
			{
				"dataItem": "vars",
				"values": {
					"DATASET[E100]": "12.123",
					"DATASET[E101]": "6574"
				}
			},
			{
				"dataItem": "toolTable",
				"values": {
					"TABLE[T1][LENGTH]": "142.654",
					"TABLE[T1][DIAMETER]": "12.496",
					"TABLE[T2][LENGTH]": "135.611",
					"TABLE[T2][DIAMETER]": "5.980"
				}
			}
		]
	}
]

Contribution / Feedback

  • Please use the Issues tab to create issues for specific problems that you may encounter
  • Please feel free to use the Pull Requests tab for any suggested improvements to the source code
  • For any other questions or feedback, please contact TrakHound directly at info@trakhound.com.

License

This application and its source code is licensed under the MIT License and is free to use.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MTConnect.NET-AdapterModule-MQTT:

Package Downloads
MTConnect.NET-Applications-Adapter

MTConnect.NET-Applications-Adapter contains classes to fully implement an MTConnect SHDR Adapter application. Supports MTConnect versions up to 2.7. Supports .NET Framework 4.6.1 up to .NET 10

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.2.0.105 125 11/21/2026
7.2.0.105-prerelease 118 11/21/2026
7.2.0.103-prerelease 129 11/20/2026
7.1.0.1-prerelease 58 9/13/2026
7.0.0.2-prerelease 69 6/26/2026
7.0.0.1-prerelease 60 9/13/2026
6.9.0.2 364 10/16/2025
6.8.0 248 9/13/2025
6.7.0 450 6/22/2025
6.6.0 277 1/18/2025
6.5.1 254 12/3/2024
6.5.0 273 10/21/2024
6.4.7 279 8/21/2024
6.4.6 292 8/7/2024
6.4.5 247 8/2/2024
6.4.4 232 7/16/2024
6.4.3 279 6/14/2024
6.4.2 278 6/12/2024
6.4.1 280 5/17/2024
6.4.0 275 5/14/2024
Loading failed