BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
BluetoothDevice.h
1 #pragma once
2 
3 #include <list>
4 #include <string>
5 
6 #include "model/DeviceID.h"
7 #include "model/ModuleType.h"
8 #include "net/MACAddress.h"
9 
10 namespace BeeeOn {
11 
17 public:
18  enum Status {
19  AVAILABLE,
20  UNAVAILABLE,
21  UNKNOWN
22  };
23 
24  static const uint64_t DEVICE_ID_LE_MASK = 0x0001000000000000;
25 
26  BluetoothDevice(const DeviceID &id);
27 
28  MACAddress mac() const;
29 
30  DeviceID deviceID() const;
31 
32  Status status() const;
33 
34  void updateStatus(const Status &status);
35 
39  bool isClassic() const;
40 
44  bool isLE() const;
45 
46 private:
47  const DeviceID m_deviceID;
48  Status m_status;
49 };
50 
51 }
bool isLE() const
Definition: BluetoothDevice.cpp:37
Definition: MACAddress.h:8
bool isClassic() const
Definition: BluetoothDevice.cpp:32
Definition: BluetoothDevice.h:16
Definition: DeviceID.h:17