# BLE Scanning - Blocking Operation

**URL:** https://community.particle.io/t/ble-scanning-blocking-operation/63201
**Category:** Firmware
**Created:** [September 20, 2022, 6:08pm UTC](https://community.particle.io/t/ble-scanning-blocking-operation/63201 "2022-09-20T18:08:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![superpanda](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@superpanda](https://community.particle.io/u/superpanda)
#### Post date: [September 20, 2022, 6:08pm UTC](https://community.particle.io/t/ble-scanning-blocking-operation/63201/1 "2022-09-20T18:08:04Z")

</div>

Ages ago I wrote an app for an Argon (or may have been a Redbear DUO) that scanned BLE devices and logged them. The scan with callback was non-blocking / asynchronous. It now appears the calls to scan are synchronous. Is there any way to implement a background scanner with the current OS?

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [September 20, 2022, 7:22pm UTC](https://community.particle.io/t/ble-scanning-blocking-operation/63201/2 "2022-09-20T19:22:15Z")

</div>

BLE.scan is always blocking, but you should be able to run it from a worker thread.

---

<div class="post-metadata">

### Author: ![superpanda](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@superpanda](https://community.particle.io/u/superpanda)
#### Post date: [September 20, 2022, 10:16pm UTC](https://community.particle.io/t/ble-scanning-blocking-operation/63201/3 "2022-09-20T22:16:25Z")

</div>

That works, thanks. -AP

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)
#### Post date: [March 22, 2023, 10:17am UTC](https://community.particle.io/t/ble-scanning-blocking-operation/63201/4 "2023-03-22T10:17:17Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
