I've also managed to implement OTA firmware updates and a similar Wifi based setup as this product has.
If anyone is interested I'm happy to put it on Github.
https://photos.app.goo.gl/ajAbJ3fqqYQV5sd98 https://photos.app.goo.gl/PHzq1P7uWkJgAtPb7 https://photos.app.goo.gl/gX3ydYRVdm5nqbGm6
edit: I'll cleanup the code and update this comment with a link to the repo tomorrow