I have a set of IoT devices that connects to Azure IoT hub regularly to send in telemetry.
Sometimes I need to send messages to the device. I do this my using the:
The device are using a built-in MQTT library.
If I send something to the device while it is offline, it was my impression that the
message should be retained in the devicebound queue until the device came online again, and read the queue.
If I send the messeage when the device is online, everything works ok, and the device gets the message.
If sent while offline, the queue is empty when the device come online again, and the message is lost.
Am I right in assuming that the devicebound queue should retain the message until the device comes online and read it?
You can't assume anything. To assume they always get saved is to also assume an unlimited amount of space for an indefinite period of time, etc.
You review the settings and their defaults.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I