Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions adv.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type Advertisement struct {
TxPowerLevel int
Connectable bool
SolicitedService []UUID
Raw []byte
}

// This is only used in Linux port.
Expand All @@ -97,6 +98,8 @@ func (a *Advertisement) unmarshall(b []byte) error {
return errors.New("invalid advertise data")
}
d := b[2 : 1+l]
a.Raw = d

switch t {
case typeFlags:
// TODO: should we do anything about the discoverability here?
Expand Down