locked
Don't work message routing RRS feed

  • Question

  • I added "$body.productId = 'MT3620'" message routing, But it don't work.

    If message query is "true", all messages routing fine.


    Monday, January 7, 2019 9:27 AM

Answers

All replies

  • Based on the doc the message must have the following properties:

    1. Content type = "application/json"

    2. Content encoding = "utf-8"

    Thanks

    Roman



    Monday, January 7, 2019 10:17 AM
  • Thanks for your support!

    Added code:

    IoTHubMessage_SetContentEncodingSystemProperty(_MessageHandle, "utf-8");
    IoTHubMessage_SetContentTypeSystemProperty(_MessageHandle, "application%2fjson");


    Tuesday, January 8, 2019 3:54 AM