Documentation
¶
Index ¶
- Constants
- type Config
- type MertechQr
- func (m *MertechQr) CheckFirmware() ([]byte, error)
- func (m *MertechQr) Connect() error
- func (m *MertechQr) DisableBluetooth() (int, error)
- func (m *MertechQr) Disconnect() error
- func (m *MertechQr) EnableBluetooth() (int, error)
- func (m *MertechQr) ScreenClear() (int, error)
- func (m *MertechQr) ScreenOff() (int, error)
- func (m *MertechQr) ScreenOn() (int, error)
- func (m *MertechQr) ShowPicFalse() (int, error)
- func (m *MertechQr) ShowPicOk() (int, error)
- func (m *MertechQr) ShowQr(qrText string) (int, error)
Constants ¶
View Source
const ( DataBits byte = 8 SpeedBaud = 115200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string
Baud int
ReadTimeout time.Duration // Total timeout
// Size is the number of data bits. If 0, DefaultSize is used.
Size byte
// Parity is the bit to use and defaults to ParityNone (no parity bit).
Parity serial.Parity
// Number of stop bits to use. Default is 1 (1 stop bit).
StopBits serial.StopBits
}
type MertechQr ¶
type MertechQr struct {
// contains filtered or unexported fields
}
func NewMertechQr ¶
func (*MertechQr) CheckFirmware ¶
func (*MertechQr) DisableBluetooth ¶
func (*MertechQr) Disconnect ¶
func (*MertechQr) EnableBluetooth ¶
func (*MertechQr) ScreenClear ¶
func (*MertechQr) ScreenOff ¶
ScreenOff In my case, when working with windows, after disabling the display, the device changes the com port
func (*MertechQr) ShowPicFalse ¶
Click to show internal directories.
Click to hide internal directories.