mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 14:40:40 +00:00
* add WIP for Unit C6L * adapt to new config structure * Add c6l BLE and screen support (#7991) * Minor c6l fix * Move out of PRIVATE_HW --------- Co-authored-by: Austin <vidplace7@gmail.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz> Co-authored-by: Jason P <Xaositek@users.noreply.github.com> Co-authored-by: Markus <Links2004@users.noreply.github.com>
27 lines
513 B
C++
27 lines
513 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
|
|
|
|
private:
|
|
void setupService();
|
|
#if !defined(NIMBLE_TWO)
|
|
void startAdvertising();
|
|
#endif
|
|
};
|
|
|
|
void setBluetoothEnable(bool enable);
|
|
void clearNVS(); |