InfiniTime/src/components/ble/ServiceDiscovery.h
2020-11-16 01:35:45 +01:00

25 lines
517 B
C++

#pragma once
#include <array>
#include <cstdint>
namespace Pinetime {
namespace Controllers {
class BleClient;
class ServiceDiscovery {
public:
ServiceDiscovery(std::array<BleClient*, 2>&& bleClients);
void StartDiscovery(uint16_t connectionHandle);
private:
BleClient** clientIterator;
std::array<BleClient*, 2> clients;
void OnServiceDiscovered(uint16_t connectionHandle);
void DiscoverNextService(uint16_t connectionHandle);
};
}
}