Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSerial ¶
func LoadSerials ¶
func LoadSerials() error
Types ¶
type Serial ¶
type Serial struct { tunnel.Tunnel `xorm:"extends"` PortName string `json:"port_name,omitempty"` //port, e.g. COM1 "/dev/ttySerial1". BaudRate uint `json:"baud_rate,omitempty"` //9600 115200 DataBits uint `json:"data_bits,omitempty"` //5 6 7 8 StopBits uint `json:"stop_bits,omitempty"` //1 2 ParityMode int `json:"parity_mode,omitempty"` //0 1 2 NONE ODD EVEN }
Serial 串口
Click to show internal directories.
Click to hide internal directories.