Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Quantum-Leap
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":
}
}
],
"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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | MARTEL [ smartsdk_martel ] |
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? |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
8d 21h | 1 | Backlog Manager | 17/Jun/20 12:06 PM | |||||
|
2h 59m | 1 | Backlog Manager | 17/Jun/20 3:06 PM |
2020-06-08 15:05|CREATED monitor | # answers= 0, accepted answer= False