getTransportName

This commit is contained in:
lathoub 2020-03-15 04:00:23 +01:00
parent 0fc2b5a059
commit 1e9706aa1a
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,8 @@ private:
T mBleClass; T mBleClass;
public: public:
const char* getTransportName() { return "BLE-MIDI"; };
BLEMIDI(const char* deviceName) BLEMIDI(const char* deviceName)
{ {
strncpy(mDeviceName, deviceName, 24); strncpy(mDeviceName, deviceName, 24);
@ -41,6 +43,7 @@ public:
mTxIndex = 0; mTxIndex = 0;
} }
protected:
void begin(MIDI_NAMESPACE::Channel inChannel = 1) void begin(MIDI_NAMESPACE::Channel inChannel = 1)
{ {
mBleClass.begin(mDeviceName, this); mBleClass.begin(mDeviceName, this);