Documentation ¶
Index ¶
- func BllXportSetConnParams(dev ble.Device, ownAddrType bledefs.BleAddrType) error
- 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) Filters() (nmcoap.TxMsgFilter, nmcoap.RxMsgFilter)
- func (s *BllSesn) IsOpen() bool
- func (s *BllSesn) ListenCoap(mc nmcoap.MsgCriteria) (*nmcoap.Listener, error)
- func (s *BllSesn) MgmtProto() sesn.MgmtProto
- func (s *BllSesn) MtuIn() int
- func (s *BllSesn) MtuOut() int
- func (s *BllSesn) Open() error
- func (s *BllSesn) RxAccept() (sesn.Sesn, *sesn.SesnCfg, error)
- func (s *BllSesn) RxCoap(opt sesn.TxOptions) (coap.Message, error)
- func (s *BllSesn) SetFilters(txFilter nmcoap.TxMsgFilter, rxFilter nmcoap.RxMsgFilter)
- func (s *BllSesn) StopListenCoap(mc nmcoap.MsgCriteria)
- func (s *BllSesn) TxCoap(m coap.Message) error
- func (s *BllSesn) TxRxMgmt(m *nmp.NmpMsg, timeout time.Duration) (nmp.NmpRsp, error)
- func (s *BllSesn) TxRxMgmtAsync(m *nmp.NmpMsg, timeout time.Duration, ch chan nmp.NmpRsp, errc chan error) error
- type BllSesnCfg
- type BllXport
- type XportCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BllXportSetConnParams ¶
func BllXportSetConnParams(dev ble.Device, ownAddrType bledefs.BleAddrType) error
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) Filters ¶
func (s *BllSesn) Filters() (nmcoap.TxMsgFilter, nmcoap.RxMsgFilter)
func (*BllSesn) ListenCoap ¶
func (*BllSesn) SetFilters ¶
func (s *BllSesn) SetFilters(txFilter nmcoap.TxMsgFilter, rxFilter nmcoap.RxMsgFilter)
func (*BllSesn) StopListenCoap ¶
func (s *BllSesn) StopListenCoap(mc nmcoap.MsgCriteria)
type BllSesnCfg ¶
type BllSesnCfg struct { MgmtProto sesn.MgmtProto AdvFilter ble.AdvFilter PreferredMtu uint16 ConnTimeout time.Duration ConnTries int WriteRsp bool TxFilter nmcoap.TxMsgFilter RxFilter nmcoap.RxMsgFilter }
func NewBllSesnCfg ¶
func NewBllSesnCfg() BllSesnCfg
type BllXport ¶
type BllXport struct {
// contains filtered or unexported fields
}
func NewBllXport ¶
func (*BllXport) BuildBllSesn ¶
func (bx *BllXport) BuildBllSesn(cfg BllSesnCfg) (sesn.Sesn, error)
type XportCfg ¶
type XportCfg struct { CtlrName string OwnAddrType bledefs.BleAddrType }
func NewXportCfg ¶
func NewXportCfg() XportCfg
Click to show internal directories.
Click to hide internal directories.