I have been using VSCode + PlatformIO for my most recent project and now I have traveled from home and found that OTA from within PlatformIO does not work...
When I am at home I can upload new firmware directly from VSCode via PlatformIO and start debugging.
But when I am remote and connected by OpenVPN to my home network where the device is running it is not possible to update. It fails in the step of connecting to the device.
21:19:17 [INFO]: Sending invitation to: 192.168.119.200
Authenticating...OK
21:19:17 [INFO]: Waiting for device...
21:19:27 [ERROR]: No response from device
The terminal process "C:\Users\Bosse\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'esp07s_OTA'" terminated with exit code: 1.
But I have also loaded ArduinoOTA on this device and this works fine to send the new firmware to the device also via VPN! So I can do the update manually.
Question:
Have I overlooked something in my setup or is this normal?