fermentord/vendor/github.com/JuulLabs-OSS/cbgo/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

26 lines
549 B
Go

package cbgo
type AdvServiceData struct {
UUID UUID
Data []byte
}
// AdvFields represents the contents of an advertisement received during
// scanning.
type AdvFields struct {
LocalName string
ManufacturerData []byte
TxPowerLevel *int
Connectable *bool
ServiceUUIDs []UUID
ServiceData []AdvServiceData
}
// AdvData represents the configurable portion of outgoing advertisements.
type AdvData struct {
LocalName string
ServiceUUIDs []UUID
// If len>0, this overrides the other fields.
IBeaconData []byte
}