Files
firmware/src/nimble/NimbleBluetoothAPI.h

23 lines
582 B
C
Raw Normal View History

2022-02-15 06:52:00 +13:00
#ifndef USE_NEW_ESP32_BLUETOOTH
2020-07-23 08:10:36 -07:00
#pragma once
#include "PhoneAPI.h"
extern uint16_t fromNumValHandle;
class BluetoothPhoneAPI : public PhoneAPI
{
protected:
2020-07-23 08:10:36 -07:00
/**
* 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;
2020-07-23 08:10:36 -07:00
};
extern PhoneAPI *bluetoothPhoneAPI;
2022-02-15 06:52:00 +13:00
#endif //#ifndef USE_NEW_ESP32_BLUETOOTH