File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ The response to the command is:
31
31
``` json
32
32
{
33
33
"eventType" : " hello" ,
34
- "protocolVersion" : " 1 " ,
34
+ "protocolVersion" : 1 ,
35
35
"message" : " OK"
36
36
}
37
37
```
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ func main() {
81
81
// fmt.Println("Req. Protocol version:", reqProtocolVersion)
82
82
output (& helloMessageJSON {
83
83
EventType : "hello" ,
84
- ProtocolVersion : "1" , // Protocol version 1 is the only supported for now...
84
+ ProtocolVersion : 1 , // Protocol version 1 is the only supported for now...
85
85
Message : "OK" ,
86
86
})
87
87
case "START" :
@@ -187,7 +187,7 @@ func newBoardPortJSON(port *enumerator.PortDetails) *boardPortJSON {
187
187
188
188
type helloMessageJSON struct {
189
189
EventType string `json:"eventType"`
190
- ProtocolVersion string `json:"protocolVersion"`
190
+ ProtocolVersion int `json:"protocolVersion"`
191
191
Message string `json:"message"`
192
192
}
193
193
You can’t perform that action at this time.
0 commit comments