Azure IoTHub: IoDevevicebound messages getting lost.
-
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:
devices/{device_id}/messages/devicebound/#
queue. 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? TIA...
-
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:
devices/{device_id}/messages/devicebound/#
queue. 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? TIA...
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
-
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
-
I do not assume, I'm asking if the mqtt spec. Specify that messages is retained in the queue if the target in offline. I am perfectly aware of space and time limitations.
-
Dag Sunde wrote:
I'm asking if the mqtt spec. Specify that messages is retained
Why not read it and see what it says?
If you don't know... I have trouble finding it in the spec. I don't ask for help on things before I've tried to look it up myself. ;)
-
If you don't know... I have trouble finding it in the spec. I don't ask for help on things before I've tried to look it up myself. ;)