summaryrefslogtreecommitdiff
path: root/src/Components/Ble/BleController.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-28 19:05:28 +0100
committerJF <jf@codingfield.com>2020-03-28 19:05:28 +0100
commitbaca0fc3e59e88420d6c7983ad133fe63c794ec0 (patch)
treee817de0b040712bb95129520fcc51eae59ecc161 /src/Components/Ble/BleController.h
parent68240704c7a60534342cfc0157564f11cf82d9d8 (diff)
Encapsulate Notification management in NotificationManager. It implement a static array of notifications to avoid dynamic allocation.
Diffstat (limited to 'src/Components/Ble/BleController.h')
-rw-r--r--src/Components/Ble/BleController.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Components/Ble/BleController.h b/src/Components/Ble/BleController.h
index 4f037fc1..31d66986 100644
--- a/src/Components/Ble/BleController.h
+++ b/src/Components/Ble/BleController.h
@@ -7,22 +7,13 @@ namespace Pinetime {
namespace Controllers {
class Ble {
public:
- struct NotificationMessage {
- uint8_t size = 0;
- const char* message = nullptr;
- };
- Ble();
+ Ble() = default;
bool IsConnected() const {return isConnected;}
void Connect();
void Disconnect();
-
- void PushNotification(const char* message, uint8_t size);
- bool PopNotification(NotificationMessage& msg);
-
private:
bool isConnected = false;
- QueueHandle_t notificationQueue;
};
}