added mesh paket and ported to newer IDF

This commit is contained in:
2021-01-14 23:08:45 +01:00
parent c17756160f
commit 0289d3f1dd
3 changed files with 66 additions and 9 deletions

View File

@ -49,9 +49,14 @@
struct mesh_packet
{
//todo type
//todo lenght
enum ota_mesh_packet_type {
APP_Data, //data for application
OTA_Version_Request, //send own version in payload
OTA_Version_Respone, //send own version in payload
OTA_Data, //send image segment
OTA_ACK, //ack image segment
OTA_Complete //signal end of image
} type;
uint8_t au8Payload[1024];
};