Skip to content

fix: enable BLE DeviceFinder implementation (adds BLE to DefineConstants)#3

Closed
mephist-cne wants to merge 1 commit into
developfrom
fix/ble-integration
Closed

fix: enable BLE DeviceFinder implementation (adds BLE to DefineConstants)#3
mephist-cne wants to merge 1 commit into
developfrom
fix/ble-integration

Conversation

@mephist-cne
Copy link
Copy Markdown
Contributor

@mephist-cne mephist-cne commented Apr 16, 2026

Closed — Superseded by Issue #7

PR #3 added BLE to <DefineConstants> to enable Plugin.BLE DeviceFinder. However, Issue #7 removes all #if TCP / #if BLE conditional compilation in favor of the return-error pattern.

With Issue #7 complete, BLE and TCP HALs coexist in the same build without compile-time guards.

See: Issue #7 — Remove all #if TCP / #if BLE conditional compilation

…lementation

- csproj DefineConstants: TCP → TCP;BLE
- Plugin.BLE/Source/HAL/DeviceFinder.cs has full BLE search impl:
  - Initialize(IAdapter, IBluetoothLE) — call once before searching
  - StartDeviceSearch(scanMode, timeoutMs) — start BLE scan
  - StopDeviceSearch() — stop scan
  - OnDeviceFound event → DeviceFoundEventArgs(DeviceInformation)
  - OnSearchCompleted event → SearchCompletedEventArgs(timedOut)
  - GetDevices() / ClearDevices() / IsScanning
  - DeviceInformation: Id, Name, DeviceType (MODEL), Rssi, NativeDevice (IDevice)
- No naming conflicts with TCP DeviceFinder partial class
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

Successfully merging this pull request may close these issues.

1 participant