Allow DeviceInfo telemetry without DeviceProperties.DeviceID
We will try to get the deviceId from the message property, in case missing the deviceId
This commit is contained in:
Родитель
90f29c79cb
Коммит
48cd45febb
|
@ -78,6 +78,11 @@ namespace Microsoft.Azure.Devices.Applications.RemoteMonitoring.EventProcessor.W
|
|||
{
|
||||
foreach (DeviceModel resultItem in results)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(resultItem.DeviceProperties.DeviceID))
|
||||
{
|
||||
resultItem.DeviceProperties.DeviceID = message.SystemProperties["iothub-connection-device-id"].ToString();
|
||||
}
|
||||
|
||||
await ProcessEventItem(resultItem);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче