Forum Discussion

Curtis Ho's avatar
Curtis Ho
Copper Contributor
Sep 14, 2018

IoT Hub to Azure Blockchain integration

I am following below document to simulate the IoT to Azure blockchain workbench 

 

https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/iot-integration-samples/ConfigureIoTDemo.md

 

The IoT message can send to the logicApp but it stuck in the store procedure and it display below error

 

3 Replies

  • Curtis Ho's avatar
    Curtis Ho
    Copper Contributor

    it works when I put the device name instead of GUID() 

     

    But in the next setup when I copy and paste the JSON Code, it trigger below errors

     

    • Marc Mercuri's avatar
      Marc Mercuri
      Former Employee

      For the IoT sample, you need to update the database first. Specifically, modify the ExternalID in the database for the User you set up for the device, changing the ExternalID value to the identifier sent from IoT Hub for the device.

       

      You then put this in the stored procedure and you should see the values that you would expect.

    • Curtis Ho's avatar
      Curtis Ho
      Copper Contributor

      Here is the Error Message
      {
      "message": "Invalid type. Expected Object but got Array.",
      "lineNumber": 0,
      "linePosition": 0,
      "path": "",
      "schemaId": "#",
      "errorType": "type",
      "childErrors": []
      }
      ]

Resources