mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 09:01:30 +10:00
* Delete unused clearNVS() (last used in commit 761804b1).
* virtual methods: add 'override' to ensure we get the signature right.
This is a safety net for pioarduino/NimBLE work where there's multiple
similar variants of the same method (eg. onConnect) and it's easy to get
the wrong one and accidentally miss a callback.
27 lines
523 B
C++
27 lines
523 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); |