In VS Code settings, set the start time for monitoring D2C message (e.g. 30)
"azure-iot-toolkit.monitorD2CBeforeNowInMinutes": 30
4.right click the edge device and Start monitoring D2C message
Expect : the output should not print D2C message ,because I don't send any D2C message for this device
Actually: the output print the D2C messages as bellow, but I don't know these message come from.
IoTHubMonitor] Start monitoring D2C message for [macedgedevice] ...
[IoTHubMonitor] Created partition receiver [3] for consumerGroup [$Default]
[IoTHubMonitor] Created partition receiver [2] for consumerGroup [$Default]
[IoTHubMonitor] Created partition receiver [1] for consumerGroup [$Default]
[IoTHubMonitor] Created partition receiver [0] for consumerGroup [$Default]
[IoTHubMonitor] [9:33:11 AM] Message received from [macedgedevice]:
{
"temperature": 29.069904,
"humidity": 78.810182
}
[IoTHubMonitor] [9:33:12 AM] Message received from [macedgedevice]:
{
"temperature": 29.968401,
"humidity": 68.754284
}
[IoTHubMonitor] [9:33:14 AM] Message received from [macedgedevice]:
{
"temperature": 26.369562,
"humidity": 73.736461
}
install latest toolkit 1.3.0.-rc3
step:
IoTHubMonitor] Start monitoring D2C message for [macedgedevice] ... [IoTHubMonitor] Created partition receiver [3] for consumerGroup [$Default] [IoTHubMonitor] Created partition receiver [2] for consumerGroup [$Default] [IoTHubMonitor] Created partition receiver [1] for consumerGroup [$Default] [IoTHubMonitor] Created partition receiver [0] for consumerGroup [$Default] [IoTHubMonitor] [9:33:11 AM] Message received from [macedgedevice]: { "temperature": 29.069904, "humidity": 78.810182 } [IoTHubMonitor] [9:33:12 AM] Message received from [macedgedevice]: { "temperature": 29.968401, "humidity": 68.754284 } [IoTHubMonitor] [9:33:14 AM] Message received from [macedgedevice]: { "temperature": 26.369562, "humidity": 73.736461 }