Skip to content

feat(ble): Add BLE beacon advertising example with HTS221 sensor.#139

Open
MatteoCnda1 wants to merge 1 commit into
mainfrom
feat/ble-beacon-advertising
Open

feat(ble): Add BLE beacon advertising example with HTS221 sensor.#139
MatteoCnda1 wants to merge 1 commit into
mainfrom
feat/ble-beacon-advertising

Conversation

@MatteoCnda1
Copy link
Copy Markdown

@MatteoCnda1 MatteoCnda1 commented Apr 23, 2026

Summary

Add a BLE beacon advertising example using STM32duinoBLE and the HTS221
temperature sensor. Closes #94

Changes

  • Added lib/ble/examples/BleBeacon/BleBeacon.ino
  • Reads live temperature from the HTS221 sensor (internal I2C bus)
  • Encodes temperature as int16 x100 in manufacturer-specific data (company ID 0x0059)
  • Advertises as STeaMi-Beacon, non-connectable, 100ms interval
  • Updates payload and re-advertises every second
  • Beacon visible on nRF Connect and LightBlue

Checklist

  • make lint passes (clang-format)
  • make build passes (PlatformIO)
  • make test-native passes (if native tests exist)
  • make test-hardware passes on a connected STeaMi (if hardware tests exist)
  • README updated (if adding/changing public API)
  • Examples added/updated (lib/ble/examples/BleBeacon/BleBeacon.ino)
  • Commit messages follow conventional commits format

@github-actions github-actions Bot added the enhancement New feature or request label Apr 23, 2026
@MatteoCnda1 MatteoCnda1 force-pushed the feat/ble-beacon-advertising branch from c3016e5 to e68e753 Compare April 23, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples(ble): Add BLE beacon advertising example.

2 participants