Compare commits
No commits in common. "main" and "v1.0.10" have entirely different histories.
20
messages.go
20
messages.go
|
@ -967,17 +967,21 @@ type StatusMessage struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type BleManufacturerData struct {
|
type BleManufacturerData struct {
|
||||||
CompanyId uint16 `json:"company_id,omitempty"`
|
CompanyId uint16 `json:"company_id,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
CompanyName string `json:"company_name,omitempty"`
|
||||||
Services []string `json:"services,omitempty"`
|
Data []byte `json:"data,omitempty"`
|
||||||
Data []byte `json:"data,omitempty"`
|
}
|
||||||
|
|
||||||
|
type BleAdvertisementPayload struct {
|
||||||
|
LocalName string `json:"localName,omitempty"`
|
||||||
|
ManufacturerData []BleManufacturerData `json:"companies,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 {
|
||||||
|
|
Loading…
Reference in New Issue