InfiniTime/src/components/ble/ServiceDiscovery.h

24 lines
500 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 {
2021-04-24 09:00:45 +00:00
public:
ServiceDiscovery(std::array<BleClient*, 2>&& bleClients);
void StartDiscovery(uint16_t connectionHandle);
2021-04-24 09:00:45 +00:00
private:
BleClient** clientIterator;
std::array<BleClient*, 2> clients;
void OnServiceDiscovered(uint16_t connectionHandle);
void DiscoverNextService(uint16_t connectionHandle);
};
}
}