gatt: github.com/bettercap/gatt/linux Index | Files | Directories

package linux

import "github.com/bettercap/gatt/linux"

Index

Package Files

const.go device.go devices.go doc.go hci.go l2cap.go log.go

type HCI Uses

type HCI struct {
    AcceptMasterHandler  func(pd *PlatData)
    AcceptSlaveHandler   func(pd *PlatData)
    AdvertisementHandler func(pd *PlatData)
    // contains filtered or unexported fields
}

func NewHCI Uses

func NewHCI(devID int, chk bool, maxConn int) (*HCI, error)

func (*HCI) CancelConnection Uses

func (h *HCI) CancelConnection(pd *PlatData) error

func (*HCI) Close Uses

func (h *HCI) Close() error

func (*HCI) Connect Uses

func (h *HCI) Connect(pd *PlatData) error

func (*HCI) SendCmdWithAdvOff Uses

func (h *HCI) SendCmdWithAdvOff(c cmd.CmdParam) error

func (*HCI) SendRawCommand Uses

func (h *HCI) SendRawCommand(c cmd.CmdParam) ([]byte, error)

func (*HCI) SetAdvertiseEnable Uses

func (h *HCI) SetAdvertiseEnable(en bool) error

func (*HCI) SetScanEnable Uses

func (h *HCI) SetScanEnable(en bool, dup bool) error

type PlatData Uses

type PlatData struct {
    Name        string
    AddressType uint8
    Address     [6]byte
    Data        []byte
    Connectable bool
    RSSI        int8

    Conn io.ReadWriteCloser
}

Directories

PathSynopsis
cmd
evt
gioctl
socket
util

Package linux imports 13 packages (graph) and is imported by 2 packages. Updated 2019-10-28. Refresh now. Tools for package owners.