Documentation ¶
Index ¶
- func CancelConnection(p Peripheral)
- func Disconnect(p Peripheral)
- type BLE
- type ConnectEvent
- type ConnectTimeoutEvent
- type ConnectionListItem
- type Connections
- type DisconnectEvent
- type DiscoverCharacteristicEvent
- type DiscoverPeripheralEvent
- type DiscoverServiceEvent
- type PeripheralListItem
- type Peripherals
- type UpdageValueEvent
- type UpdateStateEvent
- type UpdateValueEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelConnection ¶
func CancelConnection(p Peripheral)
func Disconnect ¶
func Disconnect(p Peripheral)
Types ¶
type ConnectEvent ¶
type ConnectEvent struct {
Peripheral Peripheral
}
type ConnectTimeoutEvent ¶
type ConnectTimeoutEvent struct {
Peripheral Peripheral
}
type ConnectionListItem ¶
type ConnectionListItem struct {
// contains filtered or unexported fields
}
type Connections ¶
func (*Connections) Add ¶
func (cs *Connections) Add(x ConnectionListItem) bool
func (*Connections) UpdateState ¶
func (c *Connections) UpdateState(p Peripheral, s string)
type DisconnectEvent ¶
type DisconnectEvent struct {
Peripheral Peripheral
}
type DiscoverCharacteristicEvent ¶
type DiscoverCharacteristicEvent struct { Peripheral Peripheral Gatt gatt.Characteristic Service Service Characteristic Characteristic }
FIXME: create a Characteristic type that is platform dependent to make the event platform independent
type DiscoverPeripheralEvent ¶
type DiscoverPeripheralEvent struct {
Peripheral Peripheral
}
type DiscoverServiceEvent ¶
FIXME: create a Service type that is platform dependent to make the event platform independent
type PeripheralListItem ¶
type PeripheralListItem struct {
// contains filtered or unexported fields
}
type Peripherals ¶
func (*Peripherals) Add ¶
func (ps *Peripherals) Add(x Peripheral) bool
type UpdageValueEvent ¶
type UpdageValueEvent struct { Peripheral Peripheral Characteristic gatt.Characteristic }
type UpdateStateEvent ¶
type UpdateStateEvent struct {
State string
}
type UpdateValueEvent ¶
type UpdateValueEvent struct { Peripheral Peripheral Characteristic Characteristic Data []byte }
FIXME: create a Characteristic type that is platform dependent to make the event platform independent
Click to show internal directories.
Click to hide internal directories.