[NF] Create Senml Messages for Linksmart
This commit is contained in:
parent
74d270b6d2
commit
91a05f882e
@ -27,7 +27,7 @@ namespace ZwayBot.Moduls {
|
||||
topic = "/senml/" + sensor.SenmlTopic();
|
||||
data = sensor.ToSenml();
|
||||
}
|
||||
if (topic != "" && data != "") {
|
||||
if (topic != "" && data != null && data != "") {
|
||||
this.mqtt.Send(topic, data);
|
||||
this.Update?.Invoke(this, new MqttEvent(topic, data));
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user