none
Code to send android accelerometer data to IOT hub as JSON format RRS feed

  • Question

  •  

    Could you provide me with a code to send android accelerometer data to IOT hub as JSON format?

    I have used" https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-android

    however, it shows it as string input, though the azure shell shows the output

    In the azure shell the format is:

    event:

      origin: MyAndroidDevice
      payload: '"X":0.21, "Y":-0.28, "Z":9.82'



    • Edited by FR-IOT Tuesday, September 24, 2019 7:33 AM
    Tuesday, September 24, 2019 7:31 AM

All replies