Azure IoTHub 表存储 - 存储来自 Raspberry Pi 的消息

时间:2021-01-16 15:10:07

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

我目前正在尝试按照本教程 Save IoT Hub messages that contain information like sensor data to Azure table storage 将在我的 Azure IoT 中心收到的消息存储在表存储中。但是,在测试 EventHubTrigger 时,我收到此错误:

[Error] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.EventHubTrigger'. Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').

这是我的function.json的内容:

{
  "bindings": [
    {
      "name": "iotHubMessage",
      "connection": "RasPi4_events_IOTHUB",
      "eventHubName": "raspi4",
      "consumerGroup": "lugkra",
      "cardinality": "many",
      "direction": "in",
      "type": "eventHubTrigger"
    },
    {
      "name": "outputTable",
      "direction": "out",
      "type": "table",
      "tableName": "deviceData",
      "connection": "raspi4storage_STORAGE"
    }
  ]
}

“连接”值似乎连接到正确的端点。

对于类似的错误,我尝试了几种不同的解决方案,但错误仍然存​​在。

我将不胜感激!

真诚的, 卢卡斯

0 个答案:

没有答案