Skip to content

Commit

Permalink
Use proper AccessMethodsType model
Browse files Browse the repository at this point in the history
New tests with the SMA HM 2.0 device shows, that it now properly supports the `AccessMethodsType` data structure, at least in Firmware Version `2.14.13.R`
  • Loading branch information
DerAndereAndi committed Oct 23, 2024
1 parent 3a4325a commit 5963bf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,5 @@ type AccessMethods struct {
type AccessMethodsType struct {
Id *string `json:"id"`
DnsSdMDns *DnsSdMDns `json:"dnsSd_mDns,omitempty"`
// According to the Spec Dns should be of type *Dns, but the SHM 2.0 only uses a string and would cause a crash
Dns *string `json:"dns,omitempty"`
Dns *Dns `json:"dns,omitempty"`
}

0 comments on commit 5963bf4

Please sign in to comment.