Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
262 stars 227 forks source link

fix(azure-iot-device-mqtt): add naive D2C message size checking #1181

Closed vishnureddy17 closed 1 year ago

vishnureddy17 commented 1 year ago

This adds naive D2C message size checking. This won't catch every message that hits the size limit because properties (including system properties) count toward the limit. However, the formula for this seems a tricky to derive from simply testing against a hub.