forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
84 lines (78 loc) · 2.42 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package keba
// RFID contains access credentials
type RFID struct {
Tag string
}
// Report contains report id and device serial
type Report struct {
ID int `json:"ID,string"`
Serial string `json:"Serial"`
}
// Report1 is the report 1 command answer
type Report1 struct {
ID int `json:"ID,string"`
Serial string `json:"Serial"`
Product string `json:"Product"`
Firmware string `json:"Firmware"`
COMModule int `json:"COM-module"`
Sec int64 `json:"Sec"`
}
// Report2 is the report 2 command answer
type Report2 struct {
ID int `json:"ID,string"`
Serial string `json:"Serial"`
State int `json:"State"`
Error1 int `json:"Error1"`
Error2 int `json:"Error2"`
Plug int `json:"Plug"`
AuthON int `json:"AuthON"`
AuthReq int `json:"Authreq"`
EnableSys int `json:"Enable sys"`
EnableUser int `json:"Enable user"`
MaxCurr int `json:"Max curr"`
MaxCurrPercent int `json:"Max curr %"`
CurrHW int `json:"Curr HW"`
Curruser int `json:"Curr user"`
CurrFS int `json:"Curr FS"`
TmoFS int `json:"Tmo FS"`
CurrTimer int `json:"Curr timer"`
TmoCT int `json:"Tmo CT"`
SetEnergy int `json:"Setenergy"`
Output int `json:"Output"`
Input int `json:"Input"`
Sec int64 `json:"Sec"`
}
// Report3 is the report 3 command answer
type Report3 struct {
ID int `json:"ID,string"`
Serial string `json:"Serial"`
U1 int64 `json:"U1"`
U2 int64 `json:"U2"`
U3 int64 `json:"U3"`
I1 int64 `json:"I1"`
I2 int64 `json:"I2"`
I3 int64 `json:"I3"`
P int64 `json:"P"`
PF int64 `json:"PF"`
EPres int64 `json:"E pres"`
ETotal int64 `json:"E total"`
Sec int64 `json:"Sec"`
}
// Report100 is the report 100 command answer
type Report100 struct {
ID int `json:"ID,string"`
Serial string `json:"Serial"`
SessionID int64 `json:"SessionID"`
CurrHW int `json:"Curr HW"`
EStart int64 `json:"E start"`
EPres int64 `json:"E pres"`
Started string `json:"started"`
Ended string `json:"ended"`
StartedS int64 `json:"started[s]"`
EndedS int64 `json:"ended[s]"`
Reason int `json:"reason"`
TimeQ int `json:"timeQ"`
RFIDTag string `json:"RFID tag"`
RFIDClass string `json:"RFID class"`
Sec int64 `json:"Sec"`
}