InfiniTime/src/components/ble/ServiceDiscovery.h
2021-04-24 12:00:45 +03:00

24 lines
500 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);
};
}
}