MySensors Library & Examples
2.3.2
|
#include "MySensorsCore.h"
Go to the source code of this file.
Classes | |
struct | __attribute__ |
FW config structure, stored in eeprom. More... | |
struct | __attribute__ |
FW config structure, stored in eeprom. More... | |
struct | __attribute__ |
FW config structure, stored in eeprom. More... | |
struct | __attribute__ |
FW config structure, stored in eeprom. More... | |
struct | __attribute__ |
FW config structure, stored in eeprom. More... | |
Macros | |
#define | LOCAL static |
static | |
#define | FIRMWARE_BLOCK_SIZE (16u) |
Size of each firmware block. | |
#define | MY_OTA_RETRY (5u) |
Number of times to request a fw block before giving up. | |
#define | MY_OTA_RETRY_DELAY (500u) |
Number of milliseconds before re-requesting a FW block. | |
#define | FIRMWARE_START_OFFSET (10u) |
Start offset for firmware in flash (DualOptiboot wants to keeps a signature first) | |
#define | MY_OTA_BOOTLOADER_MAJOR_VERSION (3u) |
Bootloader version major. | |
#define | MY_OTA_BOOTLOADER_MINOR_VERSION (0u) |
Bootloader version minor. | |
#define | MY_OTA_BOOTLOADER_VERSION (MY_OTA_BOOTLOADER_MINOR_VERSION * 256 + MY_OTA_BOOTLOADER_MAJOR_VERSION) |
Bootloader version. | |
#define | OTA_DEBUG(x, ...) |
debug NULL | |
#define | FIRMWARE_PROTOCOL_31 |
Enabled FOTA 3.1 protocol extensions. More... | |
Functions | |
LOCAL void | readFirmwareSettings (void) |
Read firmware settings from EEPROM. More... | |
LOCAL void | firmwareOTAUpdateRequest (void) |
Handle OTA FW update requests. | |
LOCAL bool | firmwareOTAUpdateProcess (void) |
Handle OTA FW update responses. More... | |
LOCAL bool | transportIsValidFirmware (void) |
Validate uploaded FW CRC. More... | |
LOCAL void | presentBootloaderInformation (void) |
Present bootloader/FW information upon startup. | |