Azure IOT HUB routing

Anupam Dutta 1 Reputation point
2021-02-10T03:49:31.823+00:00

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 ?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
399 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roman Kiss 2,246 Reputation points
    2021-02-10T13:43:59.827+00:00

    See my answer in the SO.

    68171-image.png

    Thanks
    Roman

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.