@@ -19,63 +19,12 @@ type writeRequest struct {
19
19
id string
20
20
}
21
21
22
- type writeRequestJson struct {
23
- p * serport
24
- P string
25
- Data []writeRequestJsonData
26
- }
27
-
28
- type writeRequestJsonRaw struct {
29
- p * serport
30
- P string
31
- Data []writeRequestJsonDataRaw
32
- }
33
-
34
- type writeRequestJsonData struct {
35
- D string
36
- Id string
37
- Buf string
38
- }
39
-
40
- type writeRequestJsonDataRaw struct {
41
- D []byte
42
- Id string
43
- Buf string
44
- }
45
-
46
- type qReportJson struct {
47
- Cmd string
48
- QCnt int
49
- P string
50
- Data []qReportJsonData
51
- }
52
-
53
- type qReportJsonData struct {
54
- D string
55
- Id string
56
- Buf string `json:"-"`
57
- Parts int `json:"-"`
58
- }
59
-
60
- type qReport struct {
61
- Cmd string
62
- QCnt int
63
- Type []string `json:"-"`
64
- Ids []string
65
- D []string //`json:"-"`
66
- Port string
67
- }
68
-
69
22
type serialhub struct {
70
23
// Opened serial ports.
71
24
ports map [* serport ]bool
72
25
73
- //open chan *io.ReadWriteCloser
74
26
//write chan *serport, chan []byte
75
27
write chan writeRequest
76
- //read chan []byte
77
-
78
- writeJson chan writeRequestJson
79
28
80
29
// Register requests from the connections.
81
30
register chan * serport
@@ -112,7 +61,6 @@ var NetworkPorts SpPortList
112
61
var sh = serialhub {
113
62
//write: make(chan *serport, chan []byte),
114
63
write : make (chan writeRequest ),
115
- writeJson : make (chan writeRequestJson ),
116
64
register : make (chan * serport ),
117
65
unregister : make (chan * serport ),
118
66
ports : make (map [* serport ]bool ),
0 commit comments