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