mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-29 14:10:53 +00:00
28 lines
540 B
C++
28 lines
540 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();
|
|
void sendLog(const uint8_t *logMessage, size_t length);
|
|
#if defined(NIMBLE_TWO)
|
|
void startAdvertising();
|
|
#endif
|
|
bool isDeInit = false;
|
|
|
|
private:
|
|
void setupService();
|
|
#if !defined(NIMBLE_TWO)
|
|
void startAdvertising();
|
|
#endif
|
|
};
|
|
|
|
void setBluetoothEnable(bool enable);
|
|
void clearNVS(); |