Update Firmware¶
UpdateFirmwareRequest¶
Topic: josev/cs. Used by Josev to request the CS to update the station firmware. |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
format |
uuid |
||
|
const |
update_firmware |
|
|
const |
request |
|
|
type |
object |
|
properties |
|||
|
type |
integer |
|
|
type |
string |
|
pattern |
^(https?|ftps?|sftp):// |
||
format |
uri |
||
|
type |
string |
|
pattern |
^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d{1,3})?([Zz]|([+-])\d{2}:\d{2})?$ |
||
format |
date-time |
||
|
type |
string |
|
pattern |
^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d{1,3})?([Zz]|([+-])\d{2}:\d{2})?$ |
||
format |
date-time |
||
|
type |
integer |
|
|
type |
integer |
|
|
type |
string |
|
|
type |
string |
Example:
{
"id": "86bfba63-a44f-40cc-8b4b-dc4c9d771e52",
"name": "update_firmware",
"type": "request",
"data": {
"request_id": 12345,
"location": "https://josev.s3.eu-west-2.amazonaws.com/josev.tar",
"retrieve_datetime": "2023-04-06T15:25:51.083Z",
"install_datetime": "2023-04-06T15:28:51.083Z", # [Optional]
"retries": 3, # [Optional]
"retry_interval": 60, # [Optional]
"signing_certificate": "xxxxxx", # [Optional]
"signature": "yyyyyy", # [Optional]
}
}
UpdateFirmwareResponse¶
Topic: cs/josev. Used to acknowledge the update firmware request. |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
format |
uuid |
||
|
const |
update_firmware |
|
|
const |
response |
|
|
type |
object |
|
properties |
|||
|
enum |
accepted, rejected, accepted_canceled, invalid_certificate, revoked_certificate |
Example:
{
"id": "86bfba63-a44f-40cc-8b4b-dc4c9d771e52",
"name": "update_firmware",
"type": "response",
"data": {
"status": "accepted", # rejected, accepted_canceled, invalid_certificate, revoked_certificate
},
}