Files
firmware/src/nimble/NimbleBluetooth.h

21 lines
361 B
C
Raw Normal View History

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();
void deinit();
2022-02-15 06:52:00 +13:00
void clearBonds();
bool isActive();
2023-02-03 08:50:10 -06:00
bool isConnected();
int getRssi();
private:
void setupService();
void startAdvertising();
2022-02-15 06:52:00 +13:00
};
void setBluetoothEnable(bool enable);
void clearNVS();