Compare commits

..

2 Commits

Author SHA1 Message Date
lathoub 139537b2e8 Update BLEMIDI_ArduinoBLE.h
moved midiService, midiChar within namespace
2022-03-24 22:23:06 +01:00
lathoub 47693c7fdc Update BLEMIDI_ArduinoBLE.h 2022-03-24 10:48:28 +01:00
2 changed files with 9 additions and 8 deletions

View File

@ -2,14 +2,15 @@
#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
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>
class Fifo {
public:

View File

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