From 1de06f272c728ce376f36ae4f1c5fecba1e2e203 Mon Sep 17 00:00:00 2001 From: Henry Seurer Date: Thu, 21 Nov 2024 09:17:20 -0800 Subject: [PATCH 1/3] Manufacture Data Update --- messages.go | 1 - 1 file changed, 1 deletion(-) diff --git a/messages.go b/messages.go index dca0bc2..2a9c85c 100644 --- a/messages.go +++ b/messages.go @@ -968,7 +968,6 @@ type StatusMessage struct { type BleManufacturerData struct { CompanyId uint16 `json:"company_id,omitempty"` - Name string `json:"name,omitempty"` Data []byte `json:"data,omitempty"` } From 7b85cb03bc458dd1ddb4883df28b691db1d1bdd4 Mon Sep 17 00:00:00 2001 From: Henry Seurer Date: Thu, 21 Nov 2024 09:25:13 -0800 Subject: [PATCH 2/3] Typo Devices => Device --- messages.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/messages.go b/messages.go index 2a9c85c..15306c6 100644 --- a/messages.go +++ b/messages.go @@ -984,13 +984,12 @@ type BleDevice struct { } type BleAdvertisementMessage struct { - Header MessageHeader `json:"header,omitempty"` - Devices BleDevice `json:"device,omitempty"` + Header MessageHeader `json:"header,omitempty"` + Device BleDevice `json:"device,omitempty"` } // noinspection GoUnusedExportedFunction func CreateHeader(status int, location string) MessageHeader { - // Do we have a build version? // var build BuildVersion From a693a92115902519f332bf8cca02d24782de7a3f Mon Sep 17 00:00:00 2001 From: Henry Seurer Date: Thu, 21 Nov 2024 09:42:31 -0800 Subject: [PATCH 3/3] Added Company Name --- messages.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/messages.go b/messages.go index 15306c6..d68ebdf 100644 --- a/messages.go +++ b/messages.go @@ -967,8 +967,9 @@ type StatusMessage struct { } type BleManufacturerData struct { - CompanyId uint16 `json:"company_id,omitempty"` - Data []byte `json:"data,omitempty"` + CompanyId uint16 `json:"company_id,omitempty"` + CompanyName string `json:"company_name,omitempty"` + Data []byte `json:"data,omitempty"` } type BleAdvertisementPayload struct {