MqttObjectPublication
Description
- › Inherits:
Overview
Properties
Methods
Signals
Enumerations
Properties
source
- › Type:
- › Signal:
sourceChanged()
- › Attributes:
Writable
topicBaseName
- › Type:
String
- › Signal:
topicBaseNameChanged()
- › Attributes:
Writable
Example
import InCore.Foundation 2.5
import InCore.Mqtt 2.5
Application {
Measurement { id: temperature; name: "Temperature"; data: 0.0; unit: "°C"}
Timer {
onTriggered: {
temperature.data = Math.random()
}
}
MqttBroker { }
MqttClient {
clientId: "MqttPublicationExample"
hostname: "localhost"
MqttObjectPublication {
retain: true
source: temperature
}
}
}