New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapToStruct: Field not found: MTU #143
Comments
The package has not been updated recently, probably some API has changed
sent from my phone
…On Sun, Oct 24, 2021, 02:01 Arsen6331 ***@***.***> wrote:
I have updated my computer (running Archlinux), and have begun receiving
the following error: MapToStruct: Field not found: MTU
BlueZ version: 5.62-1
Dbus version: 1.12.20-1
go-bluetooth version (from go.mod): v0.0.0-20210812063148-b6c83362e27d
This issue seems to be caused by the BlueZ 5.62 update as downgrading the
package makes the issue disappear.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#143>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZKVIUPLOAY5O7WRKXL5TUINEEBANCNFSM5GSZHWJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I thought this might be an issue with using an old version of go-bluetooth, but it still happens with latest, so I think something changed in BlueZ 5.62 |
Ok, I'll keep this open and provide an upgrade when I can commit some time. Feel free to move forward and provide a PR eventually. Thanks |
I've got similiar issue go run main.go discovery the output is: ERRO[0000] Error: MapToStruct: Field not found: Roles (default - current Ubuntu 21.10) |
https://patchwork.kernel.org/project/bluetooth/patch/20210826164211.2936133-1-david@lechnology.com/ the API change in question that caused this afaict |
Merged PR #145 Please reopen if it still an issue |
the fix from #145 hasn't been incorporated into |
If it is on 5.62 master may not be aligned as it usually align with ubuntu releases (21.10 ships 5.60). Can you try with branch Thanks |
I could fix the error by explicitly specifying the commit from the |
The code is generated from bluez docs, it is possible that the modification has been overwritten by code generation |
it seems to me they live on 2 different branches.
to reiterate: |
Thank you, I will try to standardize the releases! |
I‘ve just had this reported in evcc-io/evcc#2627. I‘m not sure how to proceed: downgrade to working commit or upgrade master? Upgrade underlying Alpine image? |
On master you should find the version compatible with 5.60. There are also branch with different bluez version |
User is running 5.63 (evcc-io/evcc#2627 (comment)) which should have MTU as far as I understand. |
Could you try to use |
I added the versioning reference on README and also generated a version for 5.63. I cannot test it right now, feel free to open PR with improvements |
How do I do that?
|
Good point, I added git tags and should play better with
If you have suggestions on how to structure versioning of the module in a way that fit your use case I am happy to discuss. |
For reference: golang/go#51281
I'm lacking the bluez insights to do so. Have asked user to retest 5.63 branch. |
I think the problem I've had is that I've upgraded master from
to
The first commit had |
Master refer to 5.60 which may not have MTU? |
Right. What is confusing is that master had MTU in an older commit:
|
It's my fault, I merged a contribution with that part but other that was broken. Recent commits fixed that. Dbus versions need to be addressed but I need to find a proper way. Do you have an idea? |
That's good because the failure is now explainable. I have unfortunately no suggestion about dbus- I'm only consuming this module without deeper Linux experience. |
Glad it is solved, my question is about a good way of managing go library versions in respect to the underlying blueZ version. |
Two options I could imagine:
|
Thank you, I will evaluate the effort for those approaches. It's definitely
something to address. Please close if resolved.
sent from my phone
…On Tue, Feb 22, 2022, 11:49 andig ***@***.***> wrote:
Two options I could imagine:
- separate go-bluetooth and go-bluetooth/bluez modules with different
versions OR
- go-bluetooth gets a version policy of supported bluez versions
(assuming you can support multiple ones at the same time). One release per
bluez version with patches to previous versions per policy (i.e. only last
3 bluezs will be supported).
—
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHZKVKILS3CE3HV3DTY243U4NS4JANCNFSM5GSZHWJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Resolved for me per #143 (comment) |
I have updated my computer (running Archlinux), and have begun receiving the following error:
MapToStruct: Field not found: MTU
BlueZ version:
5.62-1
Dbus version:
1.12.20-1
go-bluetooth version (from go.mod):
v0.0.0-20210812063148-b6c83362e27d
This issue seems to be caused by the BlueZ
5.62
update as downgrading the package makes the issue disappear.The text was updated successfully, but these errors were encountered: