2020-07-23 08:10:36 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "PhoneAPI.h"
|
|
|
|
|
|
|
|
|
|
extern uint16_t fromNumValHandle;
|
|
|
|
|
|
|
|
|
|
class BluetoothPhoneAPI : public PhoneAPI
|
|
|
|
|
{
|
2021-05-03 14:46:30 +08:00
|
|
|
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);
|
2021-05-03 14:46:30 +08:00
|
|
|
|
|
|
|
|
/// Check the current underlying physical link to see if the client is currently connected
|
|
|
|
|
virtual bool checkIsConnected();
|
2020-07-23 08:10:36 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern PhoneAPI *bluetoothPhoneAPI;
|