Compare commits

...

4 Commits

Author SHA1 Message Date
Henry Seurer 88ddf0d9c0 Merge remote-tracking branch 'origin/main' 2024-12-17 20:36:55 -08:00
Henry Seurer 95d3db9196 Cleaning up BLE messages 2024-12-17 20:36:50 -08:00
henry b52c585528 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	messages.go
2024-12-08 08:51:38 -08:00
henry 7810772cb5 Added Services 2024-12-08 08:50:20 -08:00
1 changed files with 8 additions and 12 deletions

View File

@ -967,21 +967,17 @@ type StatusMessage struct {
}
type BleManufacturerData struct {
CompanyId uint16 `json:"company_id,omitempty"`
CompanyName string `json:"company_name,omitempty"`
Data []byte `json:"data,omitempty"`
}
type BleAdvertisementPayload struct {
LocalName string `json:"localName,omitempty"`
ManufacturerData []BleManufacturerData `json:"companies,omitempty"`
CompanyId uint16 `json:"company_id,omitempty"`
Name string `json:"name,omitempty"`
Services []string `json:"services,omitempty"`
Data []byte `json:"data,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 {