Compare commits

..

2 Commits

Author SHA1 Message Date
lathoub 929c2fc049
Merge pull request #65 from aselectroworks/ESP32-BLE_Client
fix panic'ed bug when call BLEMIDI_Client_ESP32::end() is called
2022-09-19 12:02:41 +02:00
Atsushi Sasaki 8e740fb499 fix panic'ed bug when call BLEMIDI_Client_ESP32::end() is called 2022-09-19 17:38:11 +09:00
2 changed files with 8 additions and 9 deletions

View File

@ -2,15 +2,14 @@
#include <ArduinoBLE.h> #include <ArduinoBLE.h>
BLEService midiService(SERVICE_UUID);
BLEStringCharacteristic midiChar(CHARACTERISTIC_UUID, // standard 16-bit characteristic UUID
BLERead | BLEWrite | BLENotify | BLEWriteWithoutResponse, 16); // remote clients will be able to get notifications if this characteristic changes
#define BLE_POLLING #define BLE_POLLING
BEGIN_BLEMIDI_NAMESPACE BEGIN_BLEMIDI_NAMESPACE
BLEService midiService(SERVICE_UUID);
BLEStringCharacteristic midiChar(CHARACTERISTIC_UUID, // standard 16-bit characteristic UUID
BLERead | BLEWrite | BLENotify | BLEWriteWithoutResponse, 16); // remote clients will be able to get notifications if this characteristic changes
template<typename T, int rawSize> template<typename T, int rawSize>
class Fifo { class Fifo {
public: public:

View File

@ -256,7 +256,7 @@ public:
_client->disconnect(); _client->disconnect();
_client = nullptr; _client = nullptr;
return !_client->isConnected(); return true;
} }
void write(uint8_t *data, uint8_t length) void write(uint8_t *data, uint8_t length)