LoRaWAN FUOTA
Last updated
Last updated
Avaliable regions:
0 - EU868
1 - AS923
2 - AU915
3 - US915
Request URL:
GET /lorawan/fuota/fetch/firmwares/{device_type}
Headers:
Content-Type: application/json
Authorization: Bearer {access_token}
Response:
{
"_embedded": {
"lorawan": [
{
"firmware_version": "4.2",
"region": 0,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/firmwares/vicki_lorawan"
}
}
},
{
"firmware_version": "4.1",
"region": 0,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/firmwares/vicki_lorawan"
}
}
}
]
},
"total": 2,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/firmwares/vicki_lorawan"
}
}
}
Request URL:
POST /lorawan/fuota/initiate
Headers:
Content-Type: application/json
Authorization: Bearer {access_token}
Body:
{
"serial_numbers":["XJPC327253WXM"],
"version": 4.2,
"region": 0,
"fast_fuota": false // true/false
}
Response:
{
"_embedded": {
"lorawan": [
{
"status": "pending",
"initiatedTime": "2024-02-06 11:33:42",
"currentVersion": 41,
"updatingToVersion": "4.2",
"region": 0,
"serial_number": "XJPC327253WXM",
"_links": {
"self": {
"href": "/v1/lorawan/fuota/initiate"
}
}
}
]
},
"total": 1,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/initiate"
}
}
}
Request URL:
GET /lorawan/fuota/fetch/{serial_number}
Headers:
Content-Type: application/json
Authorization: Bearer {access_token}
Response:
{
"lorawan": {
"status": "updating",
"updatingToVersion": "4.2",
"currentVersion": 41,
"lastPacketTime": "2024-02-06T14:15:59.569798008Z",
"progress": 1,
"region": 0,
},
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/5XJ267721HBLP"
}
}
}
Request URL:
POST /lorawan/fuota/fetch/bulk
Headers:
Content-Type: application/json
Authorization: Bearer {access_token}
Body:
{
"serial_numbers":["5XJ267721HBLP","XJPC327253WXM"]
}
Response:
{
"_embedded": {
"lorawan": [
{
"status": "updating",
"updatingToVersion": "4.2",
"currentVersion": 41,
"lastPacketTime": "2024-02-06T14:16:13.880127039Z",
"progress": 1,
"region": 0,
"serial_number": "5XJ267721HBLP",
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/bulk"
}
}
},
{
"status": "updating",
"updatingToVersion": "4.2",
"currentVersion": 41,
"lastPacketTime": "2024-02-06T14:12:13.880127039Z",
"progress": 16,
"region": 0,
"serial_number": "XJPC327253WXM",
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/bulk"
}
}
}
]
},
"total": 2,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/fetch/bulk"
}
}
}
Request URL:
POST /lorawan/fuota/stop
Headers:
Content-Type: application/json
Authorization: Bearer {access_token}
Body:
{
"serial_numbers":["5XJ267721HBLP"]
}
Response:
{
"_embedded": {
"lorawan": [
{
"status": "stopped",
"stoppedTime": "2024-02-06 16:18:26",
"currentVersion": 42,
"serial_number": "5XJ267721HBLP",
"_links": {
"self": {
"href": "/v1/lorawan/fuota/stop"
}
}
}
]
},
"total": 1,
"_links": {
"self": {
"href": "/v1/lorawan/fuota/stop"
}
}
}