From 95d3db9196cc01eb776b7298dcacc402d3dfbe47 Mon Sep 17 00:00:00 2001 From: Henry Seurer Date: Tue, 17 Dec 2024 20:36:50 -0800 Subject: [PATCH] Cleaning up BLE messages --- messages.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/messages.go b/messages.go index d68ebdf..121f4ac 100644 --- a/messages.go +++ b/messages.go @@ -972,16 +972,11 @@ type BleManufacturerData struct { Data []byte `json:"data,omitempty"` } -type BleAdvertisementPayload struct { - LocalName string `json:"localName,omitempty"` - ManufacturerData []BleManufacturerData `json:"companies,omitempty"` -} - type BleDevice struct { - Address string `json:"address,omitempty"` - RSSI int16 `json:"rssi,omitempty"` - Name string `json:"name,omitempty"` - Advertisement BleAdvertisementPayload `json:"advertisement,omitempty"` + Address string `json:"address,omitempty"` + RSSI int16 `json:"rssi,omitempty"` + Name string `json:"name,omitempty"` + ManufacturerData []BleManufacturerData `json:"companies,omitempty"` } type BleAdvertisementMessage struct {