-
Notifications
You must be signed in to change notification settings - Fork 15
OTA Configs
suraj inamdar edited this page Apr 19, 2020
·
1 revision
OTA configs are defined in OtaConfig.h file under general config folder. Here we defined the required server detail structure to form a ota_config table structure. Along with table structure also some additional parameter related to response from server is defined here.
- ota_host: host server to which device perform ota request
OTA_VERSION_KEY is key, should be present in json response from server to the version request of device. Its value should be current version for example server should return current version in json format as shown below
{ "latest": 2020053012 }
OTA_API_CHECK_DURATION is the ota check duration in milliseconds. once in every this duration device checks for ota from server
#define OTA_VERSION_KEY "latest"
#define OTA_VERSION_LENGTH 15
#define OTA_VERSION_API_RESP_LENGTH OTA_HOST_BUF_SIZE
#define OTA_API_CHECK_DURATION 15000