-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
bluetooth_enabled throws SimpleDBus::Exception::NotInitialized #189
Comments
Hey @jacobbreen25, please review the tutorial and the examples on how to use SimpleBLE. Thank you! |
Thank you for your time, I have tried with your provided examples on GitHub as well as the tutorial and I get the same exception being thrown. It is always when I am trying to enable the bluetooth, no matter if I do I am going to begin looking through the source code to see if I can't find where this exception is being thrown and why. |
It's possible this bug relates to: #131 I need to properly investigate further, but my understanding is that Windows does some weird things to provide a running Bluez instance, so it's highly likely it won't work. I'd recommend running your app directly on your native system, which definitely should work. |
I'm trying to make SimpleBLE available in Julia but stumbled upon this error. This stacktrace might help debugging the error:
|
@laborg just to confirm, are you also using WSL? |
No, I'm on a native Ubuntu installation but the build of |
@jacobbreen25 FYI, it turns out that Bluetooth is not supported by WSL, so SimpleBLE won't work in that environment. I've created a separate issue to detect the problem so that the error becomes explicit. |
@laborg it seems that the issue you're getting is a fatal error that probably originates from the same issue I marked in #196, were a condition is incorrectly handled. On top of that, as far as I know nobody has tested SimpleBLE on Arch, so beware that things might be broken. In this specific case of My advice here would be to not mix builds between distros. SimpleBLE heavily relies on OS-specific modules, so messing with them is bound to cause some kind of unexpected behavior. |
Bingo, I was able to replicate the failure on WSL with the correct message, but I'm pretty sure your build will fail similarly.
|
I'll close this issue in favor of the other one, as now the fix is clear. |
I am working on programming an application however, I cannot get started because when I run my compiled code, it says:
Here is my main.cpp:
and here is my Makefile:
EDIT:
I am using Windows WSL
The text was updated successfully, but these errors were encountered: