Documentation ¶
Index ¶
- func UuidFromBllUuid(bllUuid ble.UUID) (bledefs.BleUuid, error)
- type BllSesn
- func (s *BllSesn) AbortRx(nmpSeq uint8) error
- func (s *BllSesn) Close() error
- func (s *BllSesn) CoapIsTcp() bool
- func (s *BllSesn) IsOpen() bool
- func (s *BllSesn) MgmtProto() sesn.MgmtProto
- func (s *BllSesn) MtuIn() int
- func (s *BllSesn) MtuOut() int
- func (s *BllSesn) Open() error
- func (s *BllSesn) TxCoapOnce(m coap.Message, resType sesn.ResourceType, opt sesn.TxOptions) (coap.COAPCode, []byte, error)
- func (s *BllSesn) TxNmpOnce(msg *nmp.NmpMsg, opt sesn.TxOptions) (nmp.NmpRsp, error)
- type BllSesnCfg
- type BllXport
- func (bx *BllXport) BuildAdvertiser() (adv.Advertiser, error)
- func (bx *BllXport) BuildBllSesn(cfg BllSesnCfg) (sesn.Sesn, error)
- func (bx *BllXport) BuildScanner() (scan.Scanner, error)
- func (bx *BllXport) BuildSesn(cfg sesn.SesnCfg) (sesn.Sesn, error)
- func (bx *BllXport) Start() error
- func (bx *BllXport) Stop() error
- func (bx *BllXport) Tx(data []byte) error
- type XportCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BllSesn ¶
type BllSesn struct {
// contains filtered or unexported fields
}
A session that uses the host machine's native BLE support.
func NewBllSesn ¶
func NewBllSesn(cfg BllSesnCfg) *BllSesn
func (*BllSesn) AbortRx ¶
Stops a receive operation in progress. This must be called from a separate thread, as sesn receive operations are blocking.
func (*BllSesn) TxCoapOnce ¶
type BllSesnCfg ¶
type BllSesnCfg struct { MgmtProto sesn.MgmtProto AdvFilter ble.AdvFilter PreferredMtu uint16 ConnTimeout time.Duration ConnTries int WriteRsp bool }
func NewBllSesnCfg ¶
func NewBllSesnCfg() BllSesnCfg
type BllXport ¶
type BllXport struct {
// contains filtered or unexported fields
}
func NewBllXport ¶
func (*BllXport) BuildAdvertiser ¶
func (bx *BllXport) BuildAdvertiser() (adv.Advertiser, error)
func (*BllXport) BuildBllSesn ¶
func (bx *BllXport) BuildBllSesn(cfg BllSesnCfg) (sesn.Sesn, error)
Click to show internal directories.
Click to hide internal directories.