summaryrefslogtreecommitdiff
path: root/src/BLEServer.h
diff options
context:
space:
mode:
authorNeil Kolban <kolban1@kolban.com>2018-05-27 10:56:49 -0500
committerNeil Kolban <kolban1@kolban.com>2018-05-27 10:56:49 -0500
commite885eea75617598e3b1dff9e972d2e59f297ae28 (patch)
tree7244f26854294af16fef14605e321016f213d98a /src/BLEServer.h
parentFixes for BLE_notify sample (diff)
downloadthermostat-e885eea75617598e3b1dff9e972d2e59f297ae28.tar.gz
thermostat-e885eea75617598e3b1dff9e972d2e59f297ae28.tar.bz2
thermostat-e885eea75617598e3b1dff9e972d2e59f297ae28.zip
0.4.13
Diffstat (limited to 'src/BLEServer.h')
-rw-r--r--src/BLEServer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/BLEServer.h b/src/BLEServer.h
index bc0ef05..6c71679 100644
--- a/src/BLEServer.h
+++ b/src/BLEServer.h
@@ -40,10 +40,13 @@ public:
void setByUUID(const char* uuid, BLEService* service);
void setByUUID(BLEUUID uuid, BLEService* service);
std::string toString();
+ BLEService* getFirst();
+ BLEService* getNext();
private:
- std::map<std::string, BLEService*> m_uuidMap;
std::map<uint16_t, BLEService*> m_handleMap;
+ std::map<BLEService*, std::string> m_uuidMap;
+ std::map<BLEService*, std::string>::iterator m_iterator;
};
@@ -54,7 +57,7 @@ class BLEServer {
public:
uint32_t getConnectedCount();
BLEService* createService(const char* uuid);
- BLEService* createService(BLEUUID uuid, uint32_t numHandles=15);
+ BLEService* createService(BLEUUID uuid, uint32_t numHandles=15, uint8_t inst_id=0);
BLEAdvertising* getAdvertising();
void setCallbacks(BLEServerCallbacks* pCallbacks);
void startAdvertising();