@@ -174,7 +174,6 @@ BEGIN_BLEMIDI_NAMESPACE
174
174
#define BLEMIDI_CLIENT_SECURITY_AUTH (BLEMIDI_CLIENT_BOND_DUMMY | BLEMIDI_CLIENT_MITM_DUMMY | BLEMIDI_CLIENT_PAIR_DUMMY)
175
175
176
176
/* * Define a class to handle the callbacks when advertisments are received */
177
- template <class _Settings >
178
177
class AdvertisedDeviceCallbacks : public NimBLEAdvertisedDeviceCallbacks
179
178
{
180
179
public:
@@ -235,10 +234,7 @@ class BLEMIDI_Client_ESP32
235
234
236
235
bool specificTarget = false ;
237
236
238
- // TODO: somehow the forward declaration of the template class is not accepted by the compiler
239
- // template <class> friend MyClientCallbacks;
240
-
241
- AdvertisedDeviceCallbacks<_Settings> myAdvCB;
237
+ AdvertisedDeviceCallbacks myAdvCB;
242
238
243
239
protected:
244
240
QueueHandle_t mRxQueue ;
@@ -300,7 +296,7 @@ class BLEMIDI_Client_ESP32
300
296
void scan ();
301
297
bool connect ();
302
298
303
- public: // TODO: somehow the forward declaration of the template class is not accepted by the compiler
299
+ public:
304
300
void connected ()
305
301
{
306
302
if (_bleMidiTransport->_connectedCallback )
@@ -432,7 +428,7 @@ bool BLEMIDI_Client_ESP32<_Settings>::begin(const char *deviceName, BLEMIDI_Tran
432
428
433
429
// To communicate between the 2 cores.
434
430
// Core_0 runs here, core_1 runs the BLE stack
435
- mRxQueue = xQueueCreate (256 , sizeof (uint8_t )); // TODO Settings::MaxBufferSize
431
+ mRxQueue = xQueueCreate (_Settings::MaxBufferSize , sizeof (uint8_t ));
436
432
437
433
NimBLEDevice::setSecurityIOCap (BLEMIDI_CLIENT_SECURITY_CAP); // Attention, it may need a passkey
438
434
NimBLEDevice::setSecurityAuth (BLEMIDI_CLIENT_SECURITY_AUTH);
0 commit comments