我正在使用Azure Edge V1和Ubuntu,我创建了1个名为X的IoT Hub,然后创建了2个设备,说dev1& DEV2。之后我改变了simulation_device_cloud_upload_lin.json文件
模块:
IotHub - " args":{
" IoTHubName":" X",
" IoTHubSuffix":" azure-devices.net",
"运输":" MQTT",
" RetryPolicy":" EXPONENTIAL_BACKOFF_WITH_JITTER"}
mapping - "args": [
{
"macAddress": "01:01:01:01:01:01",
"deviceId": "dev1",
"deviceKey": "primary key of dev1"
},
{
"macAddress": "02:02:02:02:02:02",
"deviceId": "dev2",
"deviceKey": "Primary key of dev2"
} ] }
然后我进入build文件夹并运行命令 ./samples/simulated_device_cloud_upload/simulated_device_cloud_upload_sample ../ samples / simulated_device_cloud_upload / src / simulated_device_cloud_upload_lin.json
这开始向IoT Hub发送消息,但当我用iothub-explorer检查IoTHub时,它会显示下面给出的错误 - 从事件中心管理端点接收回复时出错:未定义。 而且IoT Hub也没有传达消息。
你能告诉我我做错了什么吗?