Update ESP32Bluetooth.cpp (#1625)

* Update ESP32Bluetooth.cpp

* Update ESP32Bluetooth.h
This commit is contained in:
Ben Meadors
2022-08-12 14:14:14 -05:00
committed by GitHub
parent 20e43fcf34
commit 97712a9dc4
2 changed files with 55 additions and 125 deletions

View File

@@ -2,32 +2,20 @@
#pragma once
extern uint16_t fromNumValHandle;
class BluetoothPhoneAPI : public PhoneAPI
{
protected:
/**
* Subclasses can use this as a hook to provide custom notifications for their transport (i.e. bluetooth notifies)
*/
virtual void onNowHasData(uint32_t fromRadioNum) override;
/// Check the current underlying physical link to see if the client is currently connected
virtual bool checkIsConnected() override;
};
extern PhoneAPI *bluetoothPhoneAPI;
class ESP32Bluetooth
{
public:
void setup();
void shutdown();
void clearBonds();
private:
void setupService();
void startAdvertising();
};
void setBluetoothEnable(bool on);
void clearNVS();
void disablePin();
#endif
#endif