【问题标题】:Microsoft Azure Iot - Blob unrecognized extensionMicrosoft Azure IoT - Blob 无法识别的扩展
【发布时间】:2018-04-17 00:02:30
【问题描述】:

你好堆栈社区。​​p>

我正在尝试从设备向 IoT 集线器发送一条简单消息,然后将此消息存储在 Blob 上。

这样做:

  • 在 IoT Hub 上,我创建了一个具有以下属性的路由器: 级别='存储';
  • 在 IoT Hub 上,我创建了一个端点;

一切正常,除了当我通过 Azure 平台检查 Blob 时收到此警告,显示一些坏字符:

The file 'xxxxxxxxxxx' may not render correctly as it contains an unrecognized extension.

将消息从设备发送到 IoT 中心的 sn-p 如下:

    var temperature = 20 + (Math.random() * 15);
    var humidity = 60 + (Math.random() * 20);            
    var data = JSON.stringify({ deviceId: 'myFirstNodeDevice', temperature: temperature, humidity: humidity });
    var message = new Message(data);
    message.properties.add('level','storage');
    console.log("Sending message: " + message.getData());
    client.sendEvent(message, printResultFor('send'));

我无法弄清楚真正的问题是什么。提前谢谢!

【问题讨论】:

    标签: azure azure-blob-storage


    【解决方案1】:

    我以前没有看到过这条消息。我认为这可能与路由的配置方式有关。使用以下链接完整设置 OIT 中心消息并将其与 Azure 存储集成到 blob 容器:https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-store-data-in-azure-table-storage

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-05
      • 1970-01-01
      • 1970-01-01
      • 2022-09-30
      • 1970-01-01
      相关资源
      最近更新 更多