Skip to content

Commit

Permalink
Report serial and categories of remote services
Browse files Browse the repository at this point in the history
Also report the serial number and supported categories to the application
  • Loading branch information
DerAndereAndi committed Oct 6, 2024
1 parent 9d4db96 commit 63c5099
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions api/remoteservice.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package api

type RemoteService struct {
Name string `json:"name"`
Ski string `json:"ski"`
Identifier string `json:"identifier"`
Brand string `json:"brand"`
Type string `json:"type"`
Model string `json:"model"`
Name string `json:"name"`
Ski string `json:"ski"`
Identifier string `json:"identifier"`
Brand string `json:"brand"`
Type string `json:"type"`
Model string `json:"model"`
Serial string `json:"serial"`
Categories []DeviceCategoryType `json:"categories"`
}
2 changes: 2 additions & 0 deletions hub/hub_mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (h *Hub) ReportMdnsEntries(entries map[string]*api.MdnsEntry, newEntries bo
Brand: entry.Brand,
Type: entry.Type,
Model: entry.Model,
Serial: entry.Serial,
Categories: entry.Categories,
}

remoteServices = append(remoteServices, remoteService)
Expand Down

0 comments on commit 63c5099

Please sign in to comment.