Anupam Dutta
Anupam Dutta

Reputation: 159

Azure IOT HUB Message routing tags with spaces or dot

My IOT hub receives telemetry message from kepserver in the format

    {
    "CNC-Model_Performance.CNC-Model_KPI-Prameters.Station_Idle":false,
    "CNC-Model_Performance.CNC-Model_KPI-Prameters.Ideal_Cycle_time":120,
    "CNC-Model_Parameters.CNC-Model_Prameters-Alarms.Alarms.SPINDLE MPCB TRIPPED":false,
    "CNC-Model_Parameters.CNC-Model_Prameters-Alarms.Parameters.Coolant Temperature":0,
    "CNC-Model_Parameters.CNC-Model_Prameters-Alarms.Alarms.Hydraulic Motor   Current is High":false,
    "CNC-Model_Parameters.CNC-Model_Prameters-Alarms.Parameters.Incoming Voltage":0
    }

I need to route the data to a service bus if the SPINDLE MPCB TRIPPED is true or Hydraulic Motor current is High is true. I am not able to put the correct route syntax as the tags has dot and spaces present and i am not able to override them . So putting a condition like this $body.CNC-Model_Parameters.CNC-Model_Prameters-Alarms.Alarms.SPINDLE MPCB TRIPPED = true is not working . Any ideas ?

Upvotes: 1

Views: 131

Answers (1)

Roman Kiss
Roman Kiss

Reputation: 8235

Routing message on the body with a '.' and/or space in its property names is not supported in the Azure IoT Hub, see already reported issue.

Please, write the feedback to the Azure IoT team.

Upvotes: 1

Related Questions