Skip to content

Commit 8a322f4

Browse files
author
Emmanuel Bertrand
committed
add properties to use routing
1 parent bb5ffcd commit 8a322f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/iot-hub/iot-hub-mqtt-support.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ The following is a list of IoT Hub implementation-specific behaviors:
294294

295295
* IoT Hub only supports one active MQTT connection per device. Any new MQTT connection on behalf of the same device ID causes IoT Hub to drop the existing connection and **400027 ConnectionForcefullyClosedOnNewConnection** will be logged into IoT Hub Logs
296296

297+
* To [route messages based on message properties](iot-hub-devguide-routing-query-syntax.md#message-routing-query-based-on-message-properties), you must first add properties 'contentType' (`ct`) and 'contentEncoding' (`ce`) to your messages. For example:
298+
299+
```devices/{device_id}/messages/events/$.ct=application%2Fjson&$.ce=utf-8```
297300

298301
For more information, see [Messaging developer's guide](iot-hub-devguide-messaging.md).
299302

0 commit comments

Comments
 (0)