You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -72,13 +96,23 @@ The `LIST` command returns a list of the currently available serial ports. The f
72
96
}
73
97
```
74
98
75
-
The `ports` field contains a list of the available serial ports. If the serial port comes from an USB serial converter the USB VID/PID and USB SERIAL NUMBER properties are also reported inside `prefs`. Inside the `identificationPrefs` instead we have only the properties useful for product identification (in this case USB VID/PID only that may be useful to identify the board)
99
+
The `ports` field contains a list of the available serial ports. If the serial port comes from an USB serial converter the USB VID/PID and USB SERIAL NUMBER properties are also reported inside `properties`.
76
100
77
101
The list command is a one-shot command, if you need continuos monitoring of ports you should use `START_SYNC` command.
78
102
79
103
#### START_SYNC command
80
104
81
105
The `START_SYNC` command puts the tool in "events" mode: the discovery will send `add` and `remove` events each time a new port is detected or removed respectively.
106
+
The immediate response to the command is:
107
+
108
+
```json
109
+
{
110
+
"eventType": "start_sync",
111
+
"message": "OK"
112
+
}
113
+
```
114
+
115
+
after that the discovery enters in "events" mode.
82
116
83
117
The `add` events looks like the following:
84
118
@@ -88,14 +122,10 @@ The `add` events looks like the following:
0 commit comments