[NF] Now creating correct Senml for Linksmart
This commit is contained in:
parent
a931ed15f0
commit
ca399a405c
@ -89,6 +89,8 @@ namespace BlubbFish.IoT.Zway.Devices.CommandClasses.CommandClassSubs {
|
|||||||
return new List<Senml>() { new SenmlDouble("power", Senml.Units.Watt, this.Level) };
|
return new List<Senml>() { new SenmlDouble("power", Senml.Units.Watt, this.Level) };
|
||||||
} else if(this.Scale == "°C") {
|
} else if(this.Scale == "°C") {
|
||||||
return new List<Senml>() { new SenmlDouble("temperatur", Senml.Units.Celsius, this.Level) };
|
return new List<Senml>() { new SenmlDouble("temperatur", Senml.Units.Celsius, this.Level) };
|
||||||
|
} else if(this.Scale == "Lux") {
|
||||||
|
return new List<Senml>() { new SenmlDouble("luminiscence", Senml.Units.Lux, this.Level) };
|
||||||
}
|
}
|
||||||
return new List<Senml>() { };
|
return new List<Senml>() { };
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ namespace BlubbFish.IoT.Zway.Interfaces {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String SenmlTopic() {
|
public String SenmlTopic() {
|
||||||
return "/LS/v2/ZGW/" + Guid.NewGuid().ToString();
|
return "LS/v2/ZGW/";
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user