Details
-
Type:
Monitor
-
Status: Answered
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Unknown
-
HD-Enabler:Unknown
-
HD-Node:Unknown
Description
Created question in FIWARE Q/A platform on 29-07-2022 at 04:07
Please, ANSWER this question AT https://stackoverflow.com/questions/73161618/unable-to-send-southbound-data-in-fiware-iotagent-lwm2m
Question:
Unable to send Southbound data in Fiware IoTAgent LWM2M
Description:
When provisioning the Robot example device, the entities are getting created with position_info and position_status attributes but the update Position attribute in Orion is giving error
Device provision req:
curl --location --request POST 'localhost:4041/iot/devices' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'fiware-service: factory' \
--header 'fiware-servicepath: /robots' \
--data-raw '{
"devices": [
{
"device_id": "robot1",
"entity_type": "Robot",
"entity_name": "robot01",
"endpoint": "http://iot-sensors:3001/iot/robot",
"attributes": [
],
"lazy": [
],
"commands": [
],
"internal_attributes": {
"lwm2mResourceMapping": {
"Battery" :
,
"Message" :
,
"Position" :
}
}
}
]
}'
And Update context request:
curl --location --request POST 'http://localhost:1026/v1/updateContext' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'fiware-service: factory' \
--header 'fiware-servicepath: /robots' \
--data-raw '{
"contextElements": [
{
"type": "Robot",
"isPattern": "false",
"id": "Robot:robot1",
"attributes": [
]
}
],
"updateAction": "UPDATE"
}'
As per the documentation, This action should trigger an Execute action in the client. It should also update the "_status" field of the entity with the "PENDING" value, stating the execution is pending of the client result.
I also tried to update the Position attribute using v2 but not working:
curl --location --request PATCH
'http://localhost:1026/v2/entities/robot01/attrs/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'fiware-service: factory' \
--header 'fiware-servicepath: /robots' \
-d '{
"Position":
}'
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
HD-Enabler | Unknown [ 10910 ] | |
HD-Chapter | Unknown [ 10845 ] | |
HD-Node | Unknown [ 10852 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Miguel Ángel Pedraza [ mapedraza ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
13d 23h 59m | 1 | Backlog Manager | 12/Aug/22 7:31 AM | |||||
|
1d | 1 | Backlog Manager | 13/Aug/22 7:31 AM |
2022-07-29 05:31|CREATED monitor | # answers= 0, accepted answer= False