Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-20111

FIWARE.Question.Tech.Fiware Orion MQTT notification not working (anymore).

    Details

      Description

      Created question in FIWARE Q/A platform on 04-10-2022 at 08:10
      Please, ANSWER this question AT https://stackoverflow.com/questions/73945390/fiware-orion-mqtt-notification-not-working-anymore

      Question:
      Fiware Orion MQTT notification not working (anymore)

      Description:
      I don’t know where to look anymore, maybe someone has an idea what’s going wrong?
      I created an MQTT subscription on my Orion Context Broker:
      {
      "description": "Subscription to notify of all WaterQualityObserved changes",
      "subject": {
      "entities": [

      { "idPattern": ".*", "type": "WaterQualityObserved" }

      ],
      "condition":

      { "attrs": [] }

      },
      "notification": {
      "mqtt":

      { "url": "mqtt://127.0.0.1:1883", "topic": "water-quality-observed-changed" }

      }

      }
      I have both my Orion Context Broker and Mosquitto MQTT broker running locally in Docker containers.
      I get this when listing the subscriptions in my Orion CB:
      [
      {
      "id": "633bf12fe929777b6a60242b",
      "description": "MQTT subscription to notify of all WaterQualityObserved changes",
      "status": "active",
      "subject": {
      "entities": [

      { "idPattern": ".*", "type": "WaterQualityObserved" }

      ],
      "condition":

      { "attrs": [] }

      },
      "notification": {
      "timesSent": 3,
      "lastNotification": "2022-10-04T08:47:55.000Z",
      "attrs": [],
      "onlyChangedAttrs": false,
      "attrsFormat": "normalized",
      "mqtt":

      { "url": "mqtt://127.0.0.1:1883", "topic": "water-quality-observed-changed", "qos": 0 }

      ,
      "lastFailure": "2022-10-04T08:47:55.000Z",
      "failsCounter": 3,
      "covered": false
      }
      }

      ]
      As you can see “timesSent” augments when I PATCH the entity.
      The strange thing is it worked before!
      Any idea what I’m doing wrong?
      Thanks.
      Guy

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-05 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-05 05:31|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-06 05:32|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-06 05:32|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-07 05:31|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-07 05:31|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2022-10-08 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2022-10-08 05:31|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            mapedraza Miguel Ángel Pedraza
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: