-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Connection): add override keyword
- Loading branch information
Showing
4 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,3 @@ void BLEConnection::setup() | |
|
||
this->bleServer = BLEDevice::createServer(); | ||
} | ||
|
||
void BLEConnection::loop() | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ | |
|
||
class Connection : public Component | ||
{ | ||
|
||
public: | ||
virtual void setup(void) {}; | ||
virtual void loop(void) {}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include <BLEServer.h> | ||
|
||
#include "config/bluetooth.h" | ||
#include "connection.h" | ||
|
||
class BLEConnection : public Connection | ||
{ | ||
protected: | ||
std::string deviceName; | ||
BLEServer* bleServer = nullptr; | ||
public: | ||
BLEConnection(const std::string &deviceName) : deviceName(deviceName) {}; | ||
void setup(void) override; | ||
void loop(void) override; | ||
}; | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include <BLEServer.h> | ||
|
||
#include "config/bluetooth.h" | ||
#include "connection.h" | ||
|
||
class BLEConnection : public Connection | ||
{ | ||
protected: | ||
std::string deviceName; | ||
BLEServer* bleServer = nullptr; | ||
public: | ||
BLEConnection(const std::string &deviceName) : deviceName(deviceName) {}; | ||
void setup(void) override; | ||
}; |