Skip to content

Add optional BLE scan module for ESP32forth#77

Open
haywardt wants to merge 1 commit intoflagxor:mainfrom
haywardt:main
Open

Add optional BLE scan module for ESP32forth#77
haywardt wants to merge 1 commit intoflagxor:mainfrom
haywardt:main

Conversation

@haywardt
Copy link
Copy Markdown

@haywardt haywardt commented May 6, 2026

Summary

  • Adds non-blocking BLE scanning words (ble-init, ble-scan-start, ble-scanning?, ble-scan-stop, ble-count, ble-addr, ble-rssi, ble-name, ble-new?, ble-forget) implemented in C++ via the ESP32 Arduino BLE library
  • Provides both a direct-include header (esp32/ble-scan.h) for sketch use and a full optional module (esp32/optional/ble-scan/) wired into the optionals.fs boot sequence
  • Marked very_optional (like serial-bluetooth) so it stays out of the bulk with_optional build, since BLE and WiFi can conflict

Test plan

  • Copy ble-scan.h into an ESP32 Arduino sketch and verify it compiles
  • Run: ble-init 5 ble-scan-start begin ble-scanning? while 100 ms repeat ble-count .
  • Verify ble-addr, ble-rssi, ble-name, ble-new? return correct values for scanned devices
  • Confirm ble-forget clears the seen history

Generated with Claude Code

Adds non-blocking BLE scanning words (ble-init, ble-scan-start,
ble-scanning?, ble-scan-stop, ble-count, ble-addr, ble-rssi,
ble-name, ble-new?, ble-forget) as both a direct-include header and a
full optional module wired into the optionals.fs boot sequence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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