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

[fiware-stackoverflow] Sending a specific entity to FIWARE QuantumLeap

    Details

      Description

      Created question in FIWARE Q/A platform on 08-06-2020 at 14:06
      Please, ANSWER this question AT https://stackoverflow.com/questions/62262433/sending-a-specific-entity-to-fiware-quantumleap

      Question:
      Sending a specific entity to FIWARE QuantumLeap

      Description:
      In my application I have a very specific entity format, where one of the attributes' values is a json array of values.

      {
      "id": "Proximity3",
      "type": "SensorAgent",
      "measurementType": {
      "type": "string",
      "value": "boolean",
      "metadata": {}
      },
      "modifiedTime": {
      "type": "string",
      "value": "2020-06-08T12:30:11.091506Z",
      "metadata": {}
      },
      "readings": {
      "type": "array",
      "value": [
      {
      "type": "SensorReading",
      "value": {
      "reading":

      { "type": "boolean", "value": false }

      }
      }
      ],
      "metadata": {}
      },
      "sanID": {
      "type": "string",
      "value": "SAN_3",
      "metadata": {}
      },
      "sensorID": {
      "type": "string",
      "value": "Proximity3",
      "metadata": {}
      },
      "sensorManufacturer": {
      "type": "string",
      "value": "Unknown",
      "metadata": {}
      },
      "sensorType": {
      "type": "string",
      "value": "ON_OFF_SENSOR",
      "metadata": {}
      }
      }
      ]

      As you can see, readings attribute has an array of values stored in it (in this example only one.

      Whenever I try to subscribe QuantumLeap to Orion Context Broker, subscription is successful, but there is no data received by QuantumLeap (even querying http://localhost:8668/v2/attrs gives me 'No records were found for such query.'). Tried using attrFormat on subscription, but unsuccessful.

      At the same time, this https://quantumleap.readthedocs.io/en/latest/user/ suggests that the QuantumLeap expects a specific entity.
      My question is, is there anything possible to do in order to get this entity to QuantumLeap, or I would need to change the entity?

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        HD-Enabler Quantum-Leap [ 11558 ]
        Description
        Created question in FIWARE Q/A platform on 08-06-2020 at 14:06
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/62262433/sending-a-specific-entity-to-fiware-quantumleap


        +Question:+
        Sending a specific entity to FIWARE QuantumLeap

        +Description:+
        In my application I have a very specific entity format, where one of the attributes' values is a json array of values.

            {
                "id": "Proximity3",
                "type": "SensorAgent",
                "measurementType": {
                    "type": "string",
                    "value": "boolean",
                    "metadata": {}
                },
                "modifiedTime": {
                    "type": "string",
                    "value": "2020-06-08T12:30:11.091506Z",
                    "metadata": {}
                },
                "readings": {
                    "type": "array",
                    "value": [
                        {
                            "type": "SensorReading",
                            "value": {
                                "reading": {
                                    "type": "boolean",
                                    "value": false
                                }
                            }
                        }
                    ],
                    "metadata": {}
                },
                "sanID": {
                    "type": "string",
                    "value": "SAN_3",
                    "metadata": {}
                },
                "sensorID": {
                    "type": "string",
                    "value": "Proximity3",
                    "metadata": {}
                },
                "sensorManufacturer": {
                    "type": "string",
                    "value": "Unknown",
                    "metadata": {}
                },
                "sensorType": {
                    "type": "string",
                    "value": "ON_OFF_SENSOR",
                    "metadata": {}
                }
            }
        ]


        As you can see, readings attribute has an array of values stored in it (in this example only one.

        Whenever I try to subscribe QuantumLeap to Orion Context Broker, subscription is successful, but there is no data received by QuantumLeap (even querying http://localhost:8668/v2/attrs gives me 'No records were found for such query.'). Tried using attrFormat on subscription, but unsuccessful.

        At the same time, this https://quantumleap.readthedocs.io/en/latest/user/ suggests that the QuantumLeap expects a specific entity.
        My question is, is there anything possible to do in order to get this entity to QuantumLeap, or I would need to change the entity?
        Created question in FIWARE Q/A platform on 08-06-2020 at 14:06
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/62262433/sending-a-specific-entity-to-fiware-quantumleap


        +Question:+
        Sending a specific entity to FIWARE QuantumLeap

        +Description:+
        In my application I have a very specific entity format, where one of the attributes' values is a json array of values.

            {
                "id": "Proximity3",
                "type": "SensorAgent",
                "measurementType": {
                    "type": "string",
                    "value": "boolean",
                    "metadata": {}
                },
                "modifiedTime": {
                    "type": "string",
                    "value": "2020-06-08T12:30:11.091506Z",
                    "metadata": {}
                },
                "readings": {
                    "type": "array",
                    "value": [
                        {
                            "type": "SensorReading",
                            "value": {
                                "reading": {
                                    "type": "boolean",
                                    "value": false
                                }
                            }
                        }
                    ],
                    "metadata": {}
                },
                "sanID": {
                    "type": "string",
                    "value": "SAN_3",
                    "metadata": {}
                },
                "sensorID": {
                    "type": "string",
                    "value": "Proximity3",
                    "metadata": {}
                },
                "sensorManufacturer": {
                    "type": "string",
                    "value": "Unknown",
                    "metadata": {}
                },
                "sensorType": {
                    "type": "string",
                    "value": "ON_OFF_SENSOR",
                    "metadata": {}
                }
            }
        ]


        As you can see, readings attribute has an array of values stored in it (in this example only one.

        Whenever I try to subscribe QuantumLeap to Orion Context Broker, subscription is successful, but there is no data received by QuantumLeap (even querying http://localhost:8668/v2/attrs gives me 'No records were found for such query.'). Tried using attrFormat on subscription, but unsuccessful.

        At the same time, this https://quantumleap.readthedocs.io/en/latest/user/ suggests that the QuantumLeap expects a specific entity.
        My question is, is there anything possible to do in order to get this entity to QuantumLeap, or I would need to change the entity?
        fla Fernando Lopez made changes -
        Assignee MARTEL [ smartsdk_martel ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            smartsdk_martel MARTEL
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: