@@ -62,7 +62,7 @@ port configuration, and which parameters are available to the user.
62
62
63
63
``` JSON
64
64
{
65
- "event " : " describe" ,
65
+ "eventType " : " describe" ,
66
66
"message" : " ok" ,
67
67
"port_description" : {
68
68
"protocol" : " serial" ,
@@ -127,7 +127,7 @@ The response to the command is:
127
127
128
128
``` JSON
129
129
{
130
- "event " : " configure" ,
130
+ "eventType " : " configure" ,
131
131
"message" : " ok"
132
132
}
133
133
```
@@ -136,7 +136,7 @@ or if there is an error:
136
136
137
137
``` JSON
138
138
{
139
- "event " : " configure" ,
139
+ "eventType " : " configure" ,
140
140
"error" : true ,
141
141
"message" : " invalid value for parameter baudrate: 123456"
142
142
}
@@ -167,7 +167,7 @@ The answer to the `OPEN` command is:
167
167
168
168
``` JSON
169
169
{
170
- "event " : " open" ,
170
+ "eventType " : " open" ,
171
171
"message" : " ok"
172
172
}
173
173
```
@@ -177,7 +177,7 @@ other error condition happens:
177
177
178
178
``` JSON
179
179
{
180
- "event " : " open" ,
180
+ "eventType " : " open" ,
181
181
"error" : true ,
182
182
"message" : " unknown port /dev/ttyACM23"
183
183
}
@@ -191,7 +191,7 @@ tool:
191
191
192
192
``` JSON
193
193
{
194
- "event " : " port_closed" ,
194
+ "eventType " : " port_closed" ,
195
195
"message" : " serial port disappeared!"
196
196
}
197
197
```
200
200
201
201
``` JSON
202
202
{
203
- "event " : " port_closed" ,
203
+ "eventType " : " port_closed" ,
204
204
"message" : " lost TCP/IP connection with the client!"
205
205
}
206
206
```
@@ -212,7 +212,7 @@ Client/IDE. The answer to the command is:
212
212
213
213
``` JSON
214
214
{
215
- "event " : " close" ,
215
+ "eventType " : " close" ,
216
216
"message" : " ok"
217
217
}
218
218
```
@@ -221,7 +221,7 @@ or in case of error
221
221
222
222
``` JSON
223
223
{
224
- "event " : " close" ,
224
+ "eventType " : " close" ,
225
225
"error" : true ,
226
226
"message" : " port already closed"
227
227
}
0 commit comments