5#ifndef HAL_BLUETOOTH_HPP
6#define HAL_BLUETOOTH_HPP
26void start_advertising();
29void stop_bluetooth_advertising();
32void write_battery_level(
const uint8_t batteryLevel);
33void notify_battery_level(
const uint8_t batteryLevel);
52size_t write(
const char*
const buffer,
size_t bufferSize);
void shutdown()
call on program stop to gracefully shutdown the component.
Definition: charging_ic.cpp:688
bool is_advertising()
Return true is the bluetooth is visible by other devices.
Definition: bluetooth.cpp:216
bool was_used()
Return tue if the bluetooth was used during lifetime.
Definition: bluetooth.cpp:264
bool is_connected()
Return true if a bluetooth user is connected.
Definition: bluetooth.cpp:218
bool is_activated()
Return true if the bluetooth is activated.
Definition: bluetooth.cpp:214
Program scope.
Definition: control_fixed_modes.hpp:12