mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 00:51:30 +10:00
* NimBLE deinit for deep-sleep only * Optionally disable blink during light-sleep * Advised to revert "blink disable" This reverts commit 66347ce19bb7e6ade64827a01b0ba834bff1e361.
21 lines
361 B
C++
21 lines
361 B
C++
#pragma once
|
|
#include "BluetoothCommon.h"
|
|
|
|
class NimbleBluetooth : BluetoothApi
|
|
{
|
|
public:
|
|
void setup();
|
|
void shutdown();
|
|
void deinit();
|
|
void clearBonds();
|
|
bool isActive();
|
|
bool isConnected();
|
|
int getRssi();
|
|
|
|
private:
|
|
void setupService();
|
|
void startAdvertising();
|
|
};
|
|
|
|
void setBluetoothEnable(bool enable);
|
|
void clearNVS(); |