Skip to content

Read messages without connecting? #282

Answered by eriklins
drurya96 asked this question in Q&A
Discussion options

You must be logged in to vote

Bluetooth LE (BLE) comes with two different modes of operation. One would be the devices (e.g. a sensor) broadcasting some data in the BLE advertisement payload which could be read by any central device (e.g. a PC or smartphone). The other is a BLE connection which would allow a central to read/write GATT characteristics of the peripheral to gather data or write e.g. configuration parameters etc. From the above the first scenario likely applies to your use-case.

SimpleBLE does support both. scan_start() or scan_for() in Adapter.h would scan for peripherals and does expose the advertisement payload data into callback functions linked with set_callback_on_scan_found() or set_callback_on_sca…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@drurya96
Comment options

@eriklins
Comment options

Answer selected by drurya96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants