Hello,
I am trying to register an end device with the API. Therefor I send a PUT request to
https://XXX:8885/api/v3/ns/applications/XXX/devices/026000aa-23720-7?
While 026000aa-23720-7
is my self-chosen deviceId.
I send this as BODY
{
"end_device": {
"lorawan_version": "MAC_V1_0_2",
"ids": {
"device_id": "026000aa-23720-7",
"application_ids": {
"application_id": "XXX"
},
"dev_eui": "F80DF10000000504"
},
"lorawan_phy_version": "PHY_V1_0_2_REV_A",
"frequency_plan_id": "EU_863_870_TTN",
"supports_join": false,
"session": {
"dev_addr": "026000AA",
"keys": {
"f_nwk_s_int_key": {
"key": "F80DF10000005616F80DF10000005616"
}
}
}
},
"field_mask": {
"paths": [
"supports_join",
"lorawan_version",
"lorawan_phy_version",
"frequency_plan_id"
]
}
}
The device is fictional.
As RESPONSE I get this:
{
"code": 3,
"message": "error:pkg/networkserver:field_value (invalid value of field `session.dev_addr`)",
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/networkserver",
"name": "field_value",
"message_format": "invalid value of field `{field}`",
"attributes": {
"field": "session.dev_addr"
},
"correlation_id": "dbf98c7e0da74df3aa1ca66afc1c7a2e",
"code": 3
}
]
}
What am I doing wrong? I think it’s a valid DevAddr.