fix data template
This commit is contained in:
parent
e75eea3fb0
commit
a90b1fa6c6
@ -43,7 +43,7 @@ impl PulseTx {
|
||||
}});
|
||||
self.tx({ mqtt_client::MqttMessage {
|
||||
topic: String::from("/kees/energy/metalbox/data"),
|
||||
payload: format!("{\"pulses\":{pulses},\"watt\":{}", pulses * 60),
|
||||
payload: format!("{{\"pulses\":{pulses},\"watt\":{}}}", pulses * 60),
|
||||
retain: false,
|
||||
qos: mqtt_client::QoS::AtMostOnce,
|
||||
}});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user