Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
Description
Created question in FIWARE Q/A platform on 22-04-2020 at 09:04
Please, ANSWER this question AT https://stackoverflow.com/questions/61359704/context-broker-is-ignoring-value-fiware-orion-and-iotagent
Question:
Context broker is ignoring value, fiware orion and iotagent
Description:
orion version : 2.3.0
iotagent-ul version : 1.12.0
I am using fiware and iotagent over mqtt. I want to send commands to some devices with different values. I have followed https://github.com/FIWARE/tutorials.IoT-over-MQTT and read some documentation.
After provisionning a service group (with apikey: 123456) and an actuator, I can send commands with values by following the iota URL :
curl -iX POST \
'http://localhost:4041/iot/devices' \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-d '{
"devices": [
{
"device_id": "dev001",
"entity_name": "urn:ngsi-ld:Device:001",
"entity_type": "Device",
"protocol": "PDI-IoTA-UltraLight",
"transport": "MQTT",
"commands": [
{"name": "date","type": "command", "value": {"hour": 9, "minute": 31, "second": 0}}
]
}
]
}
'
iota publish a mqtt message to : /123456/dev001/cmd with payload dev001@date|hour=9|minute=31|second=0
But when using the context broker, the value is ignored :
curl -iX PATCH \
'http://localhost:1026/v2/entities/urn:ngsi-ld:Device:001/attrs' \
-H 'Content-Type: application/json' \
-H 'fiware-service: openiot' \
-H 'fiware-servicepath: /' \
-d '{
"date": {
"type" : "command",
"value" :
}
}'
Here, iota publish a mqtt message to : /123456/dev001/cmd with payload dev001@date|
Why is it ignored ? Am I doing somthing wrong ?
sorry for my poor english.
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Assignee | Backlog Manager [ backlogmanager ] |
Summary | [fiware-stackoverflow] Context broker is ignoring value, fiware orion and iotagent | FIWARE.Question.Tech.Context broker is ignoring value, fiware orion and iotagent. |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
1d 5h 59m | 1 | Backlog Manager | 23/Apr/20 6:05 PM | |||||
|
3h | 1 | Backlog Manager | 23/Apr/20 9:06 PM | |||||
|
2h 59m | 1 | Backlog Manager | 24/Apr/20 12:05 AM |
2020-04-22 12:05|CREATED monitor | # answers= 0, accepted answer= False