From 94940f66c932675cbb8c58b162baab1d1683fb43 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 29 Dec 2024 16:33:06 -0800 Subject: [PATCH] syncing up BLE between Go and Python --- messages.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/messages.go b/messages.go index 57c2c7e..4975c71 100644 --- a/messages.go +++ b/messages.go @@ -966,11 +966,16 @@ type StatusMessage struct { States map[string]bool `json:"states,omitempty"` } +type BleServiceData struct { + UUID string `json:"uuid,omitempty"` + Name string `json:"name,omitempty"` + Data []byte `json:"data,omitempty"` +} + type BleManufacturerData struct { - CompanyId uint16 `json:"company_id,omitempty"` - Name string `json:"name,omitempty"` - Services []string `json:"services,omitempty"` - Data []byte `json:"data,omitempty"` + CompanyId uint16 `json:"company_id,omitempty"` + Name string `json:"name,omitempty"` + Data []byte `json:"data,omitempty"` } type BleDevice struct {