Søren Rasmussen
07a23c1845
Some checks reported errors
continuous-integration/drone/push Build encountered an error
28 lines
548 B
Go
28 lines
548 B
Go
package ble
|
|
|
|
// AdvHandler handles advertisement.
|
|
type AdvHandler func(a Advertisement)
|
|
|
|
// AdvFilter returns true if the advertisement matches specified condition.
|
|
type AdvFilter func(a Advertisement) bool
|
|
|
|
// Advertisement ...
|
|
type Advertisement interface {
|
|
LocalName() string
|
|
ManufacturerData() []byte
|
|
ServiceData() []ServiceData
|
|
Services() []UUID
|
|
OverflowService() []UUID
|
|
TxPowerLevel() int
|
|
Connectable() bool
|
|
SolicitedService() []UUID
|
|
|
|
RSSI() int
|
|
Addr() Addr
|
|
}
|
|
|
|
// ServiceData ...
|
|
type ServiceData struct {
|
|
UUID UUID
|
|
Data []byte
|
|
}
|