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 {