Clean up nimble files

This commit is contained in:
geeksville
2020-07-23 08:10:36 -07:00
parent 4eb27b637d
commit 0415a3c369
4 changed files with 168 additions and 159 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "PhoneAPI.h"
extern uint16_t fromNumValHandle;
/// We only allow one BLE connection at a time
extern int16_t curConnectionHandle;
class BluetoothPhoneAPI : public PhoneAPI
{
/**
* Subclasses can use this as a hook to provide custom notifications for their transport (i.e. bluetooth notifies)
*/
virtual void onNowHasData(uint32_t fromRadioNum);
};
extern PhoneAPI *bluetoothPhoneAPI;