Skip to content
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

Continuous scan ,scan keeps failing #245

Open
gacmy opened this issue Mar 18, 2022 · 1 comment
Open

Continuous scan ,scan keeps failing #245

gacmy opened this issue Mar 18, 2022 · 1 comment

Comments

@gacmy
Copy link

gacmy commented Mar 18, 2022

while(true){

if(!mAdapter){
return false;
}
int ret = gattlib_adapter_scan_enable(mAdapter, ble_discovered_device,BLE_SCAN_TIMEOUT, this);
if(ret){
printf("failed to scan\n");
gattlib_adapter_scan_disable(mAdapter);
return false;
}
gattlib_adapter_scan_disable(mAdapter);
}

@gacmy
Copy link
Author

gacmy commented Mar 18, 2022

Currently only restarting the chip to solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant