I am using ESPHTTP.Update to update the firmware, commands are given over SPI from another controller to put it on OTA mode.
I have faced when doing OTA, it become dead( due to unknown reason), so had to update the firmware via serial.
I was thinking has to first download the firmware in flash then if all good then update the firmware, just to be on safe side as my modules are placed in various palace.
Thanks In Advance