-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bug in isCrownstoneInSetupMode? #4
Comments
So i've been testing a bit, and have some questions:
|
This is all information:
|
That's a lot of code for me to search through. My conclusions:
|
|
Just to make sure that the bug report is complete:
The given code I've called
|
I tried your script, and it works fine here. Your bluetooth hardware is probably not scanning well or something, you can try with a longer scan duration. Regarding the lib not working without keys, you can make a new issue for that. I think it's silly for the lib to crash when keys are not set. |
Hi, may I ask for an option to do it with or without scanning? |
Suggestion:
However, even better:
Then I can handle failures in connection from knowledge about setup mode. Would be awesome! |
Yes, fully agree that would be a nice function to have. It would probably be used internally as well, and give you some NOT_IN_SETUP_MODE error or so for the setup() command. |
Argh!!!!
Lower case mac address:
|
Fix in this script is of course:
However, it would be great to have the lib case-insensitive. |
Right, so the function works :) I wrote down some improvements for the library, which will be done later. |
The case sensitivity is a bug, I'm afraid. |
Let's split a few things up. @vliedel has proposed the following improvements to the library:
This new API would cover all problems listed in this issue, as well as some others. This issue is NOT solved at the moment and should not be closed until it is solved. We'd like to have the changes in the python library implemented within the next 2 weeks. This issue will be closed upon the release of the new API addressing the issue. |
The function
isCrownstoneInSetupMode
doesn't seem to work.The text was updated successfully, but these errors were encountered: