summaryrefslogtreecommitdiff
path: root/src/BLERemoteService.h
diff options
context:
space:
mode:
authorchegewara <imperiaonline4@gmail.com>2018-11-30 10:59:14 +0100
committerchegewara <imperiaonline4@gmail.com>2018-11-30 10:59:14 +0100
commit934702b6169b92c71cbc850876fd17fb9ee3236d (patch)
tree048df4f7106cd4a574b609a13e62a36567f5a322 /src/BLERemoteService.h
parentUpload of 0.4.16 (diff)
downloadthermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.gz
thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.bz2
thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.zip
Changes, bugfixes and updgrades. Library is ready to work with arduino-esp32 v1.0.1.
Diffstat (limited to 'src/BLERemoteService.h')
-rw-r--r--src/BLERemoteService.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BLERemoteService.h b/src/BLERemoteService.h
index 222c6e4..2ab8673 100644
--- a/src/BLERemoteService.h
+++ b/src/BLERemoteService.h
@@ -26,7 +26,6 @@ class BLERemoteCharacteristic;
*/
class BLERemoteService {
public:
-
virtual ~BLERemoteService();
// Public methods
@@ -34,7 +33,8 @@ public:
BLERemoteCharacteristic* getCharacteristic(BLEUUID uuid); // Get the specified characteristic reference.
BLERemoteCharacteristic* getCharacteristic(uint16_t uuid); // Get the specified characteristic reference.
std::map<std::string, BLERemoteCharacteristic*>* getCharacteristics();
- void getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap); // Get the characteristics map.
+ std::map<uint16_t, BLERemoteCharacteristic*>* getCharacteristicsByHandle(); // Get the characteristics map.
+ void getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap);
BLEClient* getClient(void); // Get a reference to the client associated with this service.
uint16_t getHandle(); // Get the handle of this service.
@@ -67,10 +67,10 @@ 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<std::string, BLERemoteCharacteristic*> m_characteristicMap;
// We maintain a map of characteristics owned by this service keyed by a handle.
- std::map<uint16_t, BLERemoteCharacteristic *> m_characteristicMapByHandle;
+ std::map<uint16_t, BLERemoteCharacteristic*> m_characteristicMapByHandle;
bool m_haveCharacteristics; // Have we previously obtained the characteristics.
BLEClient* m_pClient;