| Name |
Type |
Description |
Notes |
| began |
float |
The time when the DFU began |
[optional] |
| crc32 |
float |
Used for image verification |
[optional] |
| errors |
float |
The number of consecutive errors the DFU process has encountered |
[optional] |
| file |
str |
Firmware filename |
[optional] |
| length |
float |
Length of firmware file |
[optional] |
| md5 |
str |
Used for image verification |
[optional] |
| mode |
str |
_ "idle" - nothing downloading or downloaded _ "error" - halted and in the error state _ "downloading" - transferring data from cloud to module _ "sideloading" - transferring data via request to module _ "ready" - DFU data is ready/verified and waiting on external storage _ "ready-retry" - DFU data is ready/verified and retrying _ "updating" - currently updating _ "completed" - DFU is done successfully |
[optional] |
| read |
float |
The amount the notecard has read of the image from notehub |
[optional] |
| retry |
float |
Value of _fw_retry environment var at time of DFU initialization |
[optional] |
| status |
str |
Status message |
[optional] |
| type |
str |
|
[optional] |
| updated |
float |
Last updated timestamp |
[optional] |
| version |
str |
Last known version, which is generally a JSON object contained within the firmware image |
[optional] |
from notehub_py.models.dfu_state import DFUState
# TODO update the JSON string below
json = "{}"
# create an instance of DFUState from a JSON string
dfu_state_instance = DFUState.from_json(json)
# print the JSON string representation of the object
print(DFUState.to_json())
# convert the object into a dict
dfu_state_dict = dfu_state_instance.to_dict()
# create an instance of DFUState from a dict
dfu_state_from_dict = DFUState.from_dict(dfu_state_dict)
[Back to Model list] [Back to API list] [Back to README]