aboutsummaryrefslogtreecommitdiffstats
path: root/src/Components/Ble/BleController.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2019-12-27 17:05:49 +0100
committerJF <jf@codingfield.com>2019-12-27 17:05:49 +0100
commit46eeefb53a1843908c3e7dbae56dbaa0a6d83bdd (patch)
tree2ce3c2e9c819cd84b42b3c6035890b1cdb7dd45e /src/Components/Ble/BleController.h
parent11aa5e3d880af978dc5c337357c3802355c799eb (diff)
Add BleController to manage the BLE connection status
Diffstat (limited to 'src/Components/Ble/BleController.h')
-rw-r--r--src/Components/Ble/BleController.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Components/Ble/BleController.h b/src/Components/Ble/BleController.h
new file mode 100644
index 00000000..be491ee9
--- /dev/null
+++ b/src/Components/Ble/BleController.h
@@ -0,0 +1,15 @@
+#pragma once
+
+namespace Pinetime {
+ namespace Controllers {
+ class Ble {
+ public:
+ bool IsConnected() const {return isConnected;}
+ void Connect();
+ void Disconnect();
+
+ private:
+ bool isConnected = false;
+ };
+ }
+} \ No newline at end of file