Compare commits
No commits in common. "main" and "v1.0.20" have entirely different histories.
13
messages.go
13
messages.go
|
@ -973,13 +973,18 @@ type BleManufacturerData struct {
|
||||||
Data []byte `json:"data,omitempty"`
|
Data []byte `json:"data,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BleDevice struct {
|
type BleAdvertisementPayload struct {
|
||||||
Address string `json:"address,omitempty"`
|
LocalName string `json:"localName,omitempty"`
|
||||||
RSSI int16 `json:"rssi,omitempty"`
|
|
||||||
Name string `json:"name,omitempty"`
|
|
||||||
ManufacturerData []BleManufacturerData `json:"companies,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"`
|
||||||
|
}
|
||||||
|
|
||||||
type BleAdvertisementMessage struct {
|
type BleAdvertisementMessage struct {
|
||||||
Header MessageHeader `json:"header,omitempty"`
|
Header MessageHeader `json:"header,omitempty"`
|
||||||
Device BleDevice `json:"device,omitempty"`
|
Device BleDevice `json:"device,omitempty"`
|
||||||
|
|
Loading…
Reference in New Issue