Azure物联网中心 - 如何在物联网中心使用表存储?

时间:2017-11-15 05:18:54

标签: azure azure-storage azure-table-storage azure-iot-hub azure-blob-storage

首先,对不起我的英语技能。

我是来自韩国的高中生,他正在使用Azure IoT Hub进行项目。

我正在开发一个Rasberry pi设备将值发送到Azure IoT Hub的项目。我想将此数据保存在Azure表存储中,因为这些数据将被其他一些服务(例如Azure WebApp)使用。

所以我尝试在Azure Table Storage中保存raspberry pi值。 但是当我添加IoT Hub的端点时,我只能使用blob存储容器

when i pick container

this is my storage created before, no any other setting, just default

when i choose, default is blob and i can't change endpoints to table storage.

当然我还是不了解iot hub 请不要那么糟糕。

简而言之

  1. 我想将raspberry pi值发送到Azure Table Storage而不是Blob Storage但是当我为Azure IoT Hub设置端点时,我只能选择Blob存储。
  2. 如何通过Azure IoT Hub向表存储发送值。
  3. 任何机会,我对Azure的逻辑是完全错误的?

3 个答案:

答案 0 :(得分:2)

IoT Hub本身支持将消息作为blob路由到Azure存储。请参阅Save IoT hub messages that contain sensor data to your Azure blob storage。 但是,在文档中确实存在一个拼写错误,它列出了“表存储”而不是“blob存储”。我们会纠正错误。

答案 1 :(得分:2)

您可以使用任一功能或Azure Stream Analytics将中心数据推送到Azure表存储。我发现Stream Analytics对我来说效果最好,因为我能够更好地格式化数据。

答案 2 :(得分:1)

如何在Azure存储表中存储D2C消息的简单方法是使用Azure EventHubTrigger函数。

有关该功能及其与Azure IoT Hub集成的更多详细信息,请参见here

相关问题