-
Notifications
You must be signed in to change notification settings - Fork 155
heartrate example panic #198
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
Comments
Can you provide a bit more information, please? What are you running this on? Cheers |
I do it on: Adapter USB Bluetooth 5.1 USB 2.0 RTL8761B Chip I used last version, not branch. go.mod file: go 1.21.0 require tinygo.org/x/bluetooth v0.8.0 require ( go.sum file: tinygo.org/x/bluetooth v0.7.0 h1:7lU0VrauwccbLvb6AKHf4ZedFlxZIFwwqHWQD2fLWvA= |
Sweet thanks, what does |
bluetoothctl: 5.64 |
Okay, very peculiar. Everything checks out with the versions that I can see. The panic seems to suggest that the dbus object that has been provided in the Lines 177 to 178 in d0c7887
maybe try monitor dbus with
You can also manually enable a scan without running any go code with the command |
I scanned and connected to BlueNRG-345 (dev kit STEVAL-IDB), discovered services and read characteristics. There was no problem. |
Not too sure what could be going on then. If you haven't already I would try reinstalling BlueZ or maybe trying a different version. |
Can I run heartrate server and client on one PC? |
Very good chance this is now fixed by #216 which was merged into |
No. But you can use a smartphone app, for example "nRF Connect" on Android. @gitchander is this still a bug? |
If you start the client first and then start the server on the same PC, this will still lead to panic. Maybe this can be fixed. |
Uh oh!
There was an error while loading. Please reload this page.
I have next problem with standard example of heartrate-monitor:
panic: interface conversion: interface {} is map[string]map[string]dbus.Variant, not dbus.ObjectPath
goroutine 1 [running]:
tinygo.org/x/bluetooth.(*Adapter).Scan(0x786c00, 0xc0000bdea8)
.../pkg/mod/tinygo.org/x/[email protected]/gap_linux.go:177 +0xeb7
How I can fix it?
The text was updated successfully, but these errors were encountered: