Azure / azure-iot-sdk-python

A Python SDK for connecting devices to Microsoft Azure IoT services
MIT License
422 stars 375 forks source link

[feature request] Allow shorter topics to save data #1149

Closed claria closed 1 year ago

claria commented 1 year ago

My feature request does not directly apply to the azure-iot-sdk-python repository, more generally to the azure iothub backend. But i did not know, where i should place this feature request.

Is your feature request related to a problem? Please describe.

We send many small mqtt messages to the iothub. Currently, the length of the topic is a significant amount of the mqtt message which contains unneccessary data:

devices/device-foobar/messages/events/$.ct=application%2Fjson%3Bcharset%3Dutf-8

Describe the solution you'd like

Allow a shorter topic:

/d/device-foobar/m/e/$json

cartertinney commented 1 year ago

We cannot shorten the topic as that is part of the IoT Hub specification.