-
Notifications
You must be signed in to change notification settings - Fork 64
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
blelogger – terminate called after throwing an instance of 'std::logic_error' #74
Comments
any chance you can compile in debug mode and send a stack trace? |
Sure, I'm not sure if this is right (I don't have too much experience with c++) but I recompiled libblepp with
It looks quite short so I might have missed a step to get the proper stacktrace. From my own debugging I've found that it gets to int ret = log_fd(::connect(sock, (sockaddr *)&addr, sizeof(addr))); where it hangs until the function times out. Ret is then equal to for (;;)
if (!gatt.wait_on_write())
{
gatt.read_and_process_next();
} but that just hangs. I'm not sure is there another function I should be calling that checks if |
@edrosten not sure if it's relevant but while I was debugging I found https://stackoverflow.com/questions/72451087/how-to-connect-ble-devices-using-linux-bluetooth-c-library which seems to imply that BlueZ's move to DBUS can get in the way of connecting to devices through the old |
@edrosten Just as a check I downgraded to bluez |
I've made and installed this library and am attempting to run the
blelogger
file with:I've also modified the
blelogger
file to change the debug level toWhen I try run
blelogger
it gives the followingI'm getting the address from
lescan
so I'm sure that the adapter can see itThe text was updated successfully, but these errors were encountered: