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();
|
2024-07-03 16:29:07 -05:00
|
|
|
void sendLog(const uint8_t *logMessage, size_t length);
|
2025-09-17 22:40:55 +02:00
|
|
|
void startAdvertising();
|
2025-09-19 21:16:19 -05:00
|
|
|
bool isDeInit = false;
|
2022-08-12 14:14:14 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void setupService();
|
2022-02-15 06:52:00 +13:00
|
|
|
};
|
|
|
|
|
|
2024-03-03 13:56:55 -06:00
|
|
|
void setBluetoothEnable(bool enable);
|
|
|
|
|
void clearNVS();
|