Merge pull request #39 from alf45tar/master

Moved SERVICE_UUID and CHARACTERISTIC_UUID inside namespace to avoid conflicts
Thank you @alf45tar
This commit is contained in:
lathoub 2021-12-09 09:50:55 +01:00 committed by GitHub
commit 36999ecf28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -2,13 +2,6 @@
#include "BLEMIDI_Namespace.h" #include "BLEMIDI_Namespace.h"
// As specified in
// Specification for MIDI over Bluetooth Low Energy (BLE-MIDI)
// Version 1.0a, NOvember 1, 2015
// 3. BLE Service and Characteristics Definitions
#define SERVICE_UUID "03b80e5a-ede8-4b33-a751-6ce34ec4c700"
#define CHARACTERISTIC_UUID "7772e5db-3868-4112-a1a9-f2669d106bf3"
#if ARDUINO #if ARDUINO
#include <Arduino.h> #include <Arduino.h>
#else #else

View File

@ -14,6 +14,13 @@ BEGIN_BLEMIDI_NAMESPACE
using namespace MIDI_NAMESPACE; using namespace MIDI_NAMESPACE;
// As specified in
// Specification for MIDI over Bluetooth Low Energy (BLE-MIDI)
// Version 1.0a, November 1, 2015
// 3. BLE Service and Characteristics Definitions
static const char *const SERVICE_UUID = "03b80e5a-ede8-4b33-a751-6ce34ec4c700";
static const char *const CHARACTERISTIC_UUID = "7772e5db-3868-4112-a1a9-f2669d106bf3";
#define MIDI_TYPE 0x80 #define MIDI_TYPE 0x80
template <class T, class _Settings = DefaultSettings> template <class T, class _Settings = DefaultSettings>