diff --git a/adv.go b/adv.go index 787ff33..69beb61 100644 --- a/adv.go +++ b/adv.go @@ -74,6 +74,7 @@ type Advertisement struct { TxPowerLevel int Connectable bool SolicitedService []UUID + Raw []byte } // This is only used in Linux port. @@ -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?