My Project
Loading...
Searching...
No Matches
BLEHubScanner.h
Go to the documentation of this file.
1#pragma once
2
3#include "BLEHub.h"
4#include "NimBLEDevice.h"
5#include <Arduino.h>
6
8{
9 public:
11
12 // Public members
13
14 // Starts device discovery (if not already discovering).
15 void StartDiscovery(std::vector<BLEHub *> &hubs, const uint32_t scanDurationInSeconds);
16
17 private:
18 // Private members
19
20 // Reference to the BLE scanner used by this controller.
21 NimBLEScan *_scanner;
22
23 // Reference to the device callback.
24 NimBLEAdvertisedDeviceCallbacks *_advertisedDeviceCallback;
25
26 // Boolean value indicating whether scanner is active.
27 bool _isDiscovering;
28};
Definition BLEHubScanner.h:8
void StartDiscovery(std::vector< BLEHub * > &hubs, const uint32_t scanDurationInSeconds)
Definition BLEHubScanner.cpp:23
BLEHubScanner()
Definition BLEHubScanner.cpp:7