Skip to content

Device takes long time to appear - DeviceNotInRangeException thrown #2

Description

@garbit

Hey guys,

Problem
BLE devices take a long time to appear (i.e. the event doesn't fire immediately). Subsequently when I attempt to connect to the device a DeviceNotInRange Exception is thrown despite being visible using the NRFConnect tool. I suspect this is to do with the RSSI filter that I removed and the lastSeen list in the AxLEManager.

Steps to reproduce

  • Take device out of range of bluetooth range
  • Start scanning
  • Bring device into range
  • Call AxLEManager.ConnectDevice(MACADDRESS) within 1 minute (before deviceFound)

Expected
I expect the device to appear almost immediately given that the AxLE devices are advertising every 120ms.

See the following code that I attempted to fix here commit #41f9e9

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions