Android app to perform OTA update on ESP32 via BLE
- Choose the binary file to be sent
- Split the file into parts (16384 bytes each)
- Send a command to format the SPIFFS
- Send a command specifying the number of parts and MTU size
- Send the first part to the board
- Send a command indicating completion of the part along with the number of bytes (this will trigger writing to the update.bin file along with a request to the next part)
- Receive request of a part specifying the part number (repeat 5, 6 & 7)
- After all parts have been sent trigger a restart in order to apply the update