It seems that if I change anything in platformio.ini, and I press the upload button, it rebuilds the whole project. I could understand it if the change is something that can change the build configuration or something, but it seems that miscellaneous things that should not affect the binary also triggers rebuilding, such as the upload_port (IP address of the OTA target).
Can’t it be smarter and NOT rebuild the whole thing if the changes to the platformio.ini does not change the binary?
@zapta Thanks for your advice. Both are referring to a physical upload_port rather the OTA IP address or DNS name I was referring to. But the second with the script is worthwhile to be examined. With the proper esptool parameters this may work for me.
I will need to find out what parameters PlatformIO is supplying to esptool.