InfiniTime/src/components/ble/ServiceDiscovery.h

24 lines
508 B
C
Raw Normal View History

#pragma once
#include <array>
2020-11-15 14:05:51 +00:00
#include <cstdint>
namespace Pinetime {
namespace Controllers {
2020-11-15 14:05:51 +00:00
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);
};
}
}