Data source examples
- Last UpdatedNov 13, 2025
- 1 minute read
- PI System
- Adapter for MQTT 1.4
- Adapters
The following are examples of valid MQTT Sparkplug B data source configurations:
Minimal data source configuration
{
"hostNameOrIpAddress" : "148.101.185.11",
"port" : 1883
}
Complete data source configuration
{
"hostNameOrIpAddress": "125.0.0.0",
"port": 8883,
"protocol": "Tcp",
"tls": "Tls12",
"username": null,
"password": null,
"clientId": "Test-Client-Id",
"clientCertificateThumbprint": null,
"clientCertificatePassword": null,
"mqttVersion": "3.1.1",
"validateServerCertificate": true,
"timeZone": "UTC",
"streamIdPrefix": "MyPrefix.",
"defaultStreamIdPattern": "{Topic}.{ValueField}"
}
Sparkplug B data source configuration
},
"hostNameOrIpAddress": "148.101.185.11",
"port": 1883,
"primaryHostId": "Optimus",
"protocol": "Tcp",
"tls": "Tls12",
"userName": "SampleUser",
"passWord": "SamplePassword",
"clientId": "734029baf8f04bb2be99750381d6602a",
"mqttVersion": "3.1.1",
"validateServerCertificate": true,
"streamIdPrefix": null,
"defaultStreamIdPattern": "{Topic}.{MetricName}"
},