summaryrefslogtreecommitdiff
path: root/src/BLEServer.h
diff options
context:
space:
mode:
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();