Documentation ¶
Index ¶
- Variables
- type BP35C2
- func (d *BP35C2) Close()
- func (d *BP35C2) Connect() error
- func (d *BP35C2) SKINFO() (*EINFO, error)
- func (d *BP35C2) SKJOIN(ipv6Addr string) error
- func (d *BP35C2) SKLL64(addr string) (string, error)
- func (d *BP35C2) SKSCAN() (*PAN, error)
- func (d *BP35C2) SKSENDTO(handle, ipAddr, port, sec string, data []byte) (string, error)
- func (d *BP35C2) SKSETPWD(pwd string) error
- func (d *BP35C2) SKSETRBID(rbid string) error
- func (d *BP35C2) SKSREG(k, v string) error
- func (d *BP35C2) SKTERM() error
- func (d *BP35C2) SKVER() (string, error)
- func (d *BP35C2) SetIP(ip string)
- func (d *BP35C2) SetRemoteIP(ip string)
- type Client
- type Dongle
- type EINFO
- type Logger
- type Option
- type PAN
- type Pwd
- type RbID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFailER06 represents bad request error. ErrFailER06 = errors.New("ER06") )
View Source
var ( // ErrFatal is not retriable error. ErrFatal = errors.New("Fatal error") )
Functions ¶
This section is empty.
Types ¶
type BP35C2 ¶
type BP35C2 struct {
// contains filtered or unexported fields
}
BP35C2 is BP35C0/BP35C2 client implementation.
func (*BP35C2) SetRemoteIP ¶
SetRemoteIP sets ipv6 address of remote.
type Client ¶
type Client struct { Logger *zap.Logger Dongle Dongle Ipv6addr string // contains filtered or unexported fields }
Client represents abstract layer for dongle.
type Dongle ¶
type Dongle interface { Connect() error Close() SKVER() (string, error) SKINFO() (*EINFO, error) SetIP(ip string) SetRemoteIP(ip string) SKSETPWD(pwd string) error SKSETRBID(rbid string) error SKSCAN() (*PAN, error) SKSREG(k, v string) error SKLL64(addr string) (string, error) SKJOIN(ipv6Addr string) error SKSENDTO(handle, ipAddr, port, sec string, data []byte) (string, error) }
Dongle represents command wrapper.
type Option ¶
type Option interface { // Apply applies client options. Apply(*Client) }
Option represents hems client option.
type PAN ¶
type PAN struct { Channel string ChannelPage string PanID string Addr string LQI string PairID string }
PAN is Personal Area Network.
Click to show internal directories.
Click to hide internal directories.