Skip to content

Commit

Permalink
Added BLEMidi::end()
Browse files Browse the repository at this point in the history
  • Loading branch information
max22- committed Apr 25, 2023
1 parent ac1f521 commit 7cd22ba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Check the header file [here](https://github.com/max22-/ESP32-BLE-MIDI/blob/maste
Changes
-------

- v0.3.2
- 2023-04-25
- Added BLEMidi::end() to stop the BLE client or server.

- v0.3.1
- 2023-03-12
- Added a simple knob example
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP32-BLE-MIDI",
"version": "0.3.1",
"version": "0.3.2",
"description": "A library to use MIDI over Bluetooth Low Energy on ESP32 boards.",
"keywords": "esp32, bluetooth, ble, midi",
"repository":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32-BLE-MIDI
version=0.3.1
version=0.3.2
author=Maxime ANDRÉ <maxime.andre1986@gmail.com>
maintainer=Maxime ANDRÉ <maxime.andre1986@gmail.com>
sentence=A library to use MIDI over Bluetooth Low Energy on ESP32 boards.
Expand Down
4 changes: 4 additions & 0 deletions src/utility/BLEMidiBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ void BLEMidi::begin(const std::string deviceName)
BLEDevice::init(deviceName);
}

void BLEMidi::end() {
BLEDevice::deinit();
}

bool BLEMidi::isConnected()
{
return connected;
Expand Down
1 change: 1 addition & 0 deletions src/utility/BLEMidiBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class BLEMidi : public Midi {
public:
virtual void begin(const std::string deviceName);
void end();
bool isConnected();

protected:
Expand Down

0 comments on commit 7cd22ba

Please sign in to comment.