From cf518b3829d4790744c819de2fac0d35ce832cf6 Mon Sep 17 00:00:00 2001 From: henry Date: Tue, 19 Nov 2024 06:50:02 -0800 Subject: [PATCH] Added BleCompany --- messages.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"` }