muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces
Apache License 2.0
653 stars 123 forks source link

Ignore missing fields in MapToStruct #169

Closed Elara6331 closed 2 years ago

Elara6331 commented 2 years ago

Rather than returning Field Not Found from MapToStruct, ignore a field if it is not found. The current behavior has caused numerous issues for ITD when BlueZ has added a new field. The most recent of these issues resulted in #168. This change would theoretically allow new BlueZ versions to work, albeit without their new features, even though official support has not been added for them.

muka commented 2 years ago

The idea is to add the features and then have the release. Unfortunately I do not have much time to follow up so good to go as a patch. Thanks