Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
F func(o *Options)
}
func WithCustomHeader ¶
func WithCustomProtocolHandleFunc ¶
func WithCustomProtocolHandleFunc(customFunc func() map[consts.JT808CommandType]Handler) Option
func WithHeader ¶
func WithHeader(protocolVersion consts.ProtocolVersionType, phone string) Option
type Options ¶
type Options struct { Header *jt808.Header CustomProtocolHandleFunc func() map[consts.JT808CommandType]Handler }
func NewOptions ¶
type Terminal ¶
type Terminal struct { TerminalPhoneNo string // contains filtered or unexported fields }
func (*Terminal) CreateDefaultCommandData ¶
func (t *Terminal) CreateDefaultCommandData(commandType consts.JT808CommandType) []byte
func (*Terminal) ProtocolDetails ¶
Click to show internal directories.
Click to hide internal directories.