我试图通过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.
答案 0 :(得分:1)
您可以为IoT Hub资源管理器添加一个使用者组,以接收esp8266发送的事件。在Azure门户中,您可以这样做:
在命令中使用--consumer-group
选项指定上面创建的使用者组,如下所示:
iothub-explorer monitor-events myFirstDevice --consumer-group ReceiveEsp8266Events --login "HostName=xxxx"