muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore missing fields in MapToStruct

Elara6331 opened this issue · comments

commented

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.

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