platformio/platformio-core

Remote Upload and Monitor not using environment config

Open

#4,840 建立於 2023年8月30日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (791 fork)batch import
help wantedremote

倉庫指標

Star
 (7,329 star)
PR 合併指標
 (平均合併 109天 16小時) (30 天內合併 5 個 PR)

描述

I want 2 different environments, for local and remote.

I have this in my platformio.ini :

[env:remote]
upload_port = /dev/ttyUSB1
monitor_port = /dev/ttyUSB1

[env:local]
upload_port = COM4
monitor_port = COM4

By using the remote monitor (or upload, but it behaves the same), the port used will be the first specified (in this case, /dev/ttyUSB1).

image

It seems that upload_port and monitor_port aren't taken into account properly when using remote actions. It works when using monitor on the current machine however : the right port is used.

Can you please fix the remote actions so that it uses the ports I specify in the environments ?

貢獻者指南