-
Notifications
You must be signed in to change notification settings - Fork 804
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
Add missing macType param to NO_DEVICE_FOUND #1253
Conversation
I should point out that there is also a mismatch regarding |
Good catch!
I don't agree here though, the mac (ID) when creating the new BLEDevice uses the string value of the mac returned, which contains 12 chars of the address + 5* ":" separators, and of course the null char at the end. The ":"s are then later removed when publishing, which is what you're seeing in the logs/mqtt messages. |
It was driving me up the wall trying to trace the issue since I wanted to enable that flag. These little quirks in C/C++ are always fun to find. The mismatch I was referring to was in the NO_DEVICE_FOUND definition, where we're setting it to |
Keeps me entertained lol, things like this are a real pain to find though 👍
Yes, you're correct, the whole thing could just be changed to {0} for this case. If you're inclined to do so you could add that to this PR. |
Added! Better to fix it now rather than later. |
Perfect, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks! |
Description:
This addresses an issue that was created back when the
mac_type
was first added back in January with f8b4b3c, which was causing every BLE device to be marked as connectable when first detected. Combine this withBLE_FILTER_CONNECTABLE 1
and suddenly every device is getting filtered out before OMG has the chance to initialize anything.Checklist: