Azure IoT Device SDK - AVRO RRS feed

  • Question

  • Dear all,

    I am using the azure iot sdk to send message successfully to the IOT Hub, and notice that it is using AVRO format.  Is it possible to change it to use JSON?  I got lost in the github source code looking for this.

    Thank you.

    Thursday, February 22, 2018 8:14 AM

All replies

  • Hello chuaky,

    In fact IoT Hub doesn’t crack the message payload,it just treats the message as bytes across the wire.Compression is a very common need in IoT scenarios because most large scale IoT solutions include message aggregation and compression before sending the messages across the wire.XML and JSON are expressive, but they’re big, and slow to process. If you need not to use compression and then process those messages post-ingestion,you can send any format message data to IoT Hub. But if you use  compression and then process those messages post-ingestion, such as Azure Stream Analytics, a common Azure IoT message ingestor, it supports JSON, CSV and Avro.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, February 23, 2018 2:22 AM