Files
firmware/src/nimble/NimbleBluetooth.h

23 lines
448 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();
void sendLog(const uint8_t *logMessage, size_t length);
void startAdvertising();
2025-09-19 21:16:19 -05:00
bool isDeInit = false;
private:
void setupService();
2022-02-15 06:52:00 +13:00
};
void setBluetoothEnable(bool enable);
void clearNVS();