Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
BLEProcess Class Reference
Handle initialization and shutdown of the BLE Instance. More...
#include <BLEProcess.h>
Public Member Functions | |
| BLEProcess (events::EventQueue &event_queue, BLE &ble_interface) | |
| Construct a BLEProcess from an event queue and a ble interface. | |
| bool | start () |
| Initialize the ble interface, configure it and start advertising. | |
| void | stop () |
| Close existing connections and stop the process. | |
| void | on_init (mbed::Callback< void(BLE &, events::EventQueue &)> cb) |
| Subscription to the ble interface initialization event. | |
Detailed Description
Handle initialization and shutdown of the BLE Instance.
Setup advertising payload and manage advertising state. Delegate to GattClientProcess once the connection is established.
Definition at line 39 of file BLEProcess.h.
Constructor & Destructor Documentation
| BLEProcess | ( | events::EventQueue & | event_queue, |
| BLE & | ble_interface | ||
| ) |
Construct a BLEProcess from an event queue and a ble interface.
Call start() to initiate ble processing.
Definition at line 46 of file BLEProcess.h.
Member Function Documentation
| void on_init | ( | mbed::Callback< void(BLE &, events::EventQueue &)> | cb ) |
Subscription to the ble interface initialization event.
- Parameters:
-
[in] cb The callback object that will be called when the ble interface is initialized.
Definition at line 102 of file BLEProcess.h.
| bool start | ( | ) |
Initialize the ble interface, configure it and start advertising.
Definition at line 60 of file BLEProcess.h.
| void stop | ( | ) |
Close existing connections and stop the process.
Definition at line 88 of file BLEProcess.h.
Generated on Sat Jul 16 2022 11:11:06 by
1.7.2