microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

the display of D2C message is wrong after add configuration to set start time #151

Closed czgtest closed 6 years ago

czgtest commented 6 years ago

install latest toolkit 1.3.0.-rc3

step:

  1. create IoT hub
  2. create IoT edge device
  3. 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 }

formulahendry commented 6 years ago

It is the feature of monitorD2CBeforeNowInMinutes