Azure Iothub-Explorer epoch错误?

时间:2018-06-02 04:21:15

标签: azure esp8266 azure-iot-hub azure-cli azure-iot-sdk

我试图通过iothub-explorer查看从我的esp8266模块发送的消息,但是我收到了以下错误。

我正在运行的命令

iothub-explorer monitor-events DeviceID --login "HostName=Something.azure-devices.net;SharedAccessKeyName=key;SharedAccessKey=asdfsdfsdfasdfsdf="

错误

Error: At least one receiver for the endpoint is created with epoch of '3', and so non-epoch receiver is not allowed. Either reconnect with a higher epoch, or make sure all epoch receivers are closed or disconnected.

1 个答案:

答案 0 :(得分:1)

您可以为IoT Hub资源管理器添加一个使用者组,以接收esp8266发送的事件。在Azure门户中,您可以这样做:

enter image description here

在命令中使用--consumer-group选项指定上面创建的使用者组,如下所示:

iothub-explorer monitor-events myFirstDevice --consumer-group ReceiveEsp8266Events --login "HostName=xxxx"

参考:iothub-explorer-monitor-events.js