Versions in this module Expand all Collapse all v1 v1.0.2 Sep 12, 2023 v1.0.1 Aug 17, 2023 Changes in this version + type HCI struct + AcceptMasterHandler func(pd *PlatData) + AcceptSlaveHandler func(pd *PlatData) + AdvertisementHandler func(pd *PlatData) + func NewHCI(devID int, chk bool, maxConn int) (*HCI, error) + func (h *HCI) CancelConnection(pd *PlatData) error + func (h *HCI) Close() error + func (h *HCI) Connect(pd *PlatData) error + func (h *HCI) SendCmdWithAdvOff(c cmd.CmdParam) error + func (h *HCI) SendRawCommand(c cmd.CmdParam) ([]byte, error) + func (h *HCI) SetAdvertiseEnable(en bool) error + func (h *HCI) SetScanEnable(en bool, dup bool) error + type PlatData struct + Address [6]byte + AddressType uint8 + Conn io.ReadWriteCloser + Connectable bool + Data []byte + Name string + RSSI int8