I tried to run BasicOTA in Arduino and Platformio but it doesn't work :/ I'll explain my problem.
The code compiles without errors and I can upgrade it via UART. The second time, when I'm trying to upload the code via WiFi, I receive this error: [ERROR]: No response from device in my IDE and the UART throws Error[1]: Begin Failed.
I can't figure it out what I'm doing wrong. In every tutorial I have found, the steps are the same and I can upgrade successfully the firmware via UART.
What I really need is only one bootloader and one application. At the beginning , the bootloader should check if there is an update, and if there isn't, just continue to the application. The part of writing the flash wouldn't be a problem but I don't know how should I split the code. I mean, how do I jump from bootloader to the application in the flash and that. The code of my application should be a new project or how should I manage that?
Any help in one or both questions would be really really appreciated.
Many thanks!