fermentord/vendor/github.com/JuulLabs-OSS/ble/adv.go
Søren Rasmussen 07a23c1845
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Upgrade to go 1.20 and add vendor catalog
2023-04-22 10:37:23 +02:00

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
}