Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Internet of Things
  4. Azure IoTHub: IoDevevicebound messages getting lost.

Azure IoTHub: IoDevevicebound messages getting lost.

Scheduled Pinned Locked Moved Internet of Things
iotclouddata-structuresquestion
6 Posts 3 Posters 30 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    me dagsunde com
    wrote on last edited by
    #1

    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...

    L 1 Reply Last reply
    0
    • M me dagsunde com

      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...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • L Lost User

        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

        D Offline
        D Offline
        Dag Sunde
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • D Dag Sunde

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Dag Sunde wrote:

          I'm asking if the mqtt spec. Specify that messages is retained

          Why not read it and see what it says?

          M 1 Reply Last reply
          0
          • L Lost User

            Dag Sunde wrote:

            I'm asking if the mqtt spec. Specify that messages is retained

            Why not read it and see what it says?

            M Offline
            M Offline
            me dagsunde com
            wrote on last edited by
            #5

            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. ;)

            L 1 Reply Last reply
            0
            • M me dagsunde com

              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. ;)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Your question asks what the spec says. I merely suggested that you can read it yourself in order to find the answer.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups