Compare commits

..

No commits in common. "main" and "v1.0.20" have entirely different histories.

1 changed files with 12 additions and 12 deletions

View File

@ -966,23 +966,23 @@ type StatusMessage struct {
States map[string]bool `json:"states,omitempty"` States map[string]bool `json:"states,omitempty"`
} }
type BleServiceData struct { type BleManufacturerData struct {
UUID string `json:"uuid,omitempty"` CompanyId uint16 `json:"company_id,omitempty"`
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`
Data []byte `json:"data,omitempty"` Services []string `json:"services,omitempty"`
Data []byte `json:"data,omitempty"`
} }
type BleManufacturerData struct { type BleAdvertisementPayload struct {
CompanyId uint16 `json:"company_id,omitempty"` LocalName string `json:"localName,omitempty"`
Name string `json:"name,omitempty"` ManufacturerData []BleManufacturerData `json:"companies,omitempty"`
Data []byte `json:"data,omitempty"`
} }
type BleDevice struct { type BleDevice struct {
Address string `json:"address,omitempty"` Address string `json:"address,omitempty"`
RSSI int16 `json:"rssi,omitempty"` RSSI int16 `json:"rssi,omitempty"`
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`
ManufacturerData []BleManufacturerData `json:"companies,omitempty"` Advertisement BleAdvertisementPayload `json:"advertisement,omitempty"`
} }
type BleAdvertisementMessage struct { type BleAdvertisementMessage struct {