diff --git a/messages.go b/messages.go index 555b767..458c9dd 100644 --- a/messages.go +++ b/messages.go @@ -967,9 +967,14 @@ type StatusMessage struct { States map[string]bool `json:"states,omitempty"` } +type BleCompany struct { + CompanyId int16 `json:"company_id,omitempty"` + Name string `json:"name,omitempty"` +} + type BleAdvertisementPayload struct { LocalName string `json:"localName,omitempty"` - Companies []string `json:"companies,omitempty"` + Companies []BleCompany `json:"companies,omitempty"` Bytes []byte `json:"bytes,omitempty"` ManufacturerData []bluetooth.ManufacturerDataElement `json:"manufacturerData,omitempty"` }