3 Commits
Author SHA1 Message Date
BlubbFish a931ed15f0 [NF] fixing Senml topics and data 2018-05-07 09:34:10 +00:00
BlubbFish ff35791819 [NF] Create Senml Messages for Linksmart 2018-05-03 14:43:50 +00:00
BlubbFish 6bce798689 [NF] Create Senml Messages for Linksmart 2018-05-03 14:39:08 +00:00
5 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -259,14 +259,14 @@ namespace BlubbFish.IoT.Zway.Interfaces {
} }
Dictionary<String, Object> json = new Dictionary<String, Object> { Dictionary<String, Object> json = new Dictionary<String, Object> {
{ "e", l }, { "e", l },
{ "bn", "urn:dev:id:" + this.SenmlTopic() }, { "bn", this.DeviceId + "/" + this.Instance + "/" + ((Int32)this.Commandclass).ToString() + (this.IsSub ? "/" + this.SensorId : "") + "/" },
{ "bt", ((DateTimeOffset)this.LastUpdate).ToUnixTimeSeconds() } { "bt", ((DateTimeOffset)this.LastUpdate).ToUnixTimeSeconds() }
}; };
return JsonMapper.ToJson(json); return JsonMapper.ToJson(json);
} }
public String SenmlTopic() { public String SenmlTopic() {
return this.DeviceId + "/" + this.Instance + "/" + ((Int32)this.Commandclass).ToString() + (this.IsSub ? "/" + this.SensorId : ""); return "/LS/v2/ZGW/" + Guid.NewGuid().ToString();
} }
#endregion #endregion
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")] [assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.0.0")] [assembly: AssemblyFileVersion("1.4.1.0")]
Binary file not shown.
Binary file not shown.
Binary file not shown.