2022-02-15 06:52:00 +13:00
|
|
|
#pragma once
|
2023-02-03 08:50:10 -06:00
|
|
|
#include "BluetoothCommon.h"
|
2022-02-15 06:52:00 +13:00
|
|
|
|
2023-02-03 08:50:10 -06:00
|
|
|
class NimbleBluetooth : BluetoothApi
|
2022-02-15 06:52:00 +13:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void setup();
|
|
|
|
|
void shutdown();
|
2024-04-15 23:50:42 +12:00
|
|
|
void deinit();
|
2022-02-15 06:52:00 +13:00
|
|
|
void clearBonds();
|
2022-08-14 15:27:21 -05:00
|
|
|
bool isActive();
|
2023-02-03 08:50:10 -06:00
|
|
|
bool isConnected();
|
|
|
|
|
int getRssi();
|
2022-08-12 14:14:14 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void setupService();
|
|
|
|
|
void startAdvertising();
|
2022-02-15 06:52:00 +13:00
|
|
|
};
|
|
|
|
|
|
2024-03-03 13:56:55 -06:00
|
|
|
void setBluetoothEnable(bool enable);
|
|
|
|
|
void clearNVS();
|