summaryrefslogtreecommitdiff
path: root/src/BLERemoteService.h
diff options
context:
space:
mode:
authorNeil Kolban <kolban1@kolban.com>2017-11-21 09:51:03 -0600
committerNeil Kolban <kolban1@kolban.com>2017-11-21 09:51:03 -0600
commit4a781e01832176d61af010669b8c362f5a777768 (patch)
tree6a7a16309d61c4728512f5eb632d3ad565288c36 /src/BLERemoteService.h
parentFixes for #121 (diff)
downloadthermostat-4a781e01832176d61af010669b8c362f5a777768.tar.gz
thermostat-4a781e01832176d61af010669b8c362f5a777768.tar.bz2
thermostat-4a781e01832176d61af010669b8c362f5a777768.zip
Updates 2017-11-21 0950
Diffstat (limited to 'src/BLERemoteService.h')
-rw-r--r--src/BLERemoteService.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/BLERemoteService.h b/src/BLERemoteService.h
index 2007fa2..521effc 100644
--- a/src/BLERemoteService.h
+++ b/src/BLERemoteService.h
@@ -32,7 +32,9 @@ public:
// Public methods
BLERemoteCharacteristic* getCharacteristic(const char* uuid);
BLERemoteCharacteristic* getCharacteristic(BLEUUID uuid);
- std::map<std::string, BLERemoteCharacteristic*>* getCharacteristics();
+ BLERemoteCharacteristic* getCharacteristic(uint16_t uuid);
+ std::map<BLERemoteCharacteristic*, std::string>* getCharacteristics();
+ void getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* ptr);
BLEClient* getClient(void);
uint16_t getHandle();
@@ -61,7 +63,9 @@ private:
// Properties
// We maintain a map of characteristics owned by this service keyed by a string representation of the UUID.
- std::map<std::string, BLERemoteCharacteristic *> m_characteristicMap;
+ std::map<BLERemoteCharacteristic *, std::string> m_characteristicMap;
+ // We maintain a map of characteristics owned by this service keyed by a handle.
+ std::map<uint16_t, BLERemoteCharacteristic *> m_characteristicMapByHandle;
bool m_haveCharacteristics; // Have we previously obtained the characteristics.
BLEClient* m_pClient;