I'm doing a project with an ESP32, where I upload a binary file with OTA (with the AsyncElegantOTA library).
Well, the problem is that, when I upload an exported binary file with Arduino IDE it works, but when I try to do the same with Arduino CLI it doesn't.
I realize that both files are different, the exported binary file with Arduino IDE it's only one file (named otaesp.ino.nodemcu-32s.bin), but the exported binary file with Arduino CLI it's a directory (named esp32.esp32.nodemcu-32s, like the Arduino IDE file) with several files in it (otaesp.ino.bin, otaesp.ino.bootloader.bin, otaesp.ino.partitions.bin, etc.), and they weigh the same as the exported file with Arduino IDE.
So, my question is, there is a way to export with Arduino CLI into only one file, like Arduino IDE do?
I'm using this command
arduino-cli compile -b esp32:esp32:nodemcu-32s:UploadSpeed=115200 ./CodeFromGithub/otaesp/otaesp.ino -e
Thank you!