mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
19 lines
489 B
C++
19 lines
489 B
C++
#pragma once
|
|
|
|
#include "PhoneAPI.h"
|
|
|
|
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);
|
|
|
|
/// Check the current underlying physical link to see if the client is currently connected
|
|
virtual bool checkIsConnected();
|
|
};
|
|
|
|
extern PhoneAPI *bluetoothPhoneAPI; |