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

ScanTimeoutElapsed method not getting called #794

Open
PrachiKarapurkar opened this issue Jan 3, 2024 · 2 comments
Open

ScanTimeoutElapsed method not getting called #794

PrachiKarapurkar opened this issue Jan 3, 2024 · 2 comments
Labels

Comments

@PrachiKarapurkar
Copy link

PrachiKarapurkar commented Jan 3, 2024

Once scan timeouts ScanTimeoutElapsed event not getting triggered.
Any solution to resolve this issue.

adapter.ScanTimeoutElapsed += ScanTimeoutElapsed;

adapter.ScanTimeout = 20000;
adapter.DeviceDiscovered += (s, a) =>
{
      await adapter.StartScanningForDevicesAsync();
 }

Configuration

Version of the Plugin: 3.0.0

Platform: iOS

Thanks in advance

@smsissuechecker
Copy link

Hi @PrachiKarapurkar,

I'm the friendly issue checker.
It seems like (100.00 %) you haven't used our issue template 😢 I think it is very frustrating for the repository owners, if you ignore them.

If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.

Thanks!

@janusw janusw added the os:iOS label Jan 6, 2024
@janusw
Copy link
Member

janusw commented Mar 16, 2024

I cannot confirm this on current master (close to v3.1.0-beta.2) ...

When running the MAUI sample client (BLE.Client.Maui), one can see in the logs that the ScanTimeoutElapsed event is being called correctly.

private void Adapter_ScanTimeoutElapsed(object sender, EventArgs e)
{
DebugMessage("Adapter_ScanTimeoutElapsed");
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsRefreshing)));
CleanupCancellationToken();
DebugMessage("Adapter_ScanTimeoutElapsed done");
}

Does the scanning itself work well for you? Are you seeing any advertisements? Can you try the sample client?

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

No branches or pull requests

3 participants