Merge branch 'master' of https://github.com/ccliushou/iotgateway
This commit is contained in:
commit
5d5d59ce3d
@ -31,7 +31,8 @@ namespace IoTGateway.ViewModel.BasicData.DeviceConfigVMs
|
||||
.GetSelectListItems(Wtm, y => y.DeviceName);
|
||||
if (Entity.DeviceId != null)
|
||||
{
|
||||
if (Entity.EnumInfo != null)
|
||||
//if (Entity.EnumInfo != null)
|
||||
if (!string.IsNullOrEmpty( Entity.EnumInfo))
|
||||
{
|
||||
AllTypes = new List<ComboSelectListItem>();
|
||||
var EnumInfos = JsonSerializer.Deserialize<Dictionary<string, int>>(Entity.EnumInfo);
|
||||
|
@ -481,6 +481,11 @@ namespace Plugin
|
||||
case IoTPlatformType.IoTSharp:
|
||||
foreach (var payload in SendModel[device.DeviceName])
|
||||
{
|
||||
//if (payload.Values.ContainsKey("ts"))
|
||||
// payload.Values["ts"] = payload.TS;
|
||||
//else
|
||||
// payload.Values.Add("ts",payload.TS);
|
||||
|
||||
UploadISTelemetryDataAsync(device.DeviceName, payload.Values);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user