I am trying to upload a project to a remote device. To be clear, i have one PC “Client” connected to the arduino and another PC “Server” on another network that will upload a project (PC names are just to be clear). To connect them i run
Client
pio account login
-
pio remote agent start --share server@mail.com
Server pio remote agent list
-
pio remote device monitor --baud 115200
The remote connection is opened in a socket such assocket://localhost:59326
. This connection works because i can send data to the arduino through this socket
The trouble is if i want to use platformio ide to upload. If i add to the configuration in platformio.ini
upload_port = socket://localhost:59326
It auto detects my bluetooth
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba, stlink
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Auto-detected: /dev/cu.Bluetooth-Incoming-Port
Forcing reset using 1200bps open/close on port /dev/cu.Bluetooth-Incoming-Port
Uploading .pio/build/release/firmware.bin
No device found on cu.Bluetooth-Incoming-Port