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?
2020-06-08 15:05|CREATED monitor | # answers= 0, accepted answer= False