summaryrefslogtreecommitdiff
path: root/src/BLEScan.h
diff options
context:
space:
mode:
authorNeil Kolban <kolban1@kolban.com>2017-11-21 09:51:03 -0600
committerNeil Kolban <kolban1@kolban.com>2017-11-21 09:51:03 -0600
commit4a781e01832176d61af010669b8c362f5a777768 (patch)
tree6a7a16309d61c4728512f5eb632d3ad565288c36 /src/BLEScan.h
parentFixes for #121 (diff)
downloadthermostat-4a781e01832176d61af010669b8c362f5a777768.tar.gz
thermostat-4a781e01832176d61af010669b8c362f5a777768.tar.bz2
thermostat-4a781e01832176d61af010669b8c362f5a777768.zip
Updates 2017-11-21 0950
Diffstat (limited to 'src/BLEScan.h')
-rw-r--r--src/BLEScan.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BLEScan.h b/src/BLEScan.h
index bc7f431..edf79a9 100644
--- a/src/BLEScan.h
+++ b/src/BLEScan.h
@@ -31,6 +31,7 @@ class BLEScan;
*/
class BLEScanResults {
public:
+ void dump();
int getCount();
BLEAdvertisedDevice getDevice(uint32_t i);
@@ -46,8 +47,6 @@ private:
*/
class BLEScan {
public:
- BLEScan();
-
void setActiveScan(bool active);
void setAdvertisedDeviceCallbacks(BLEAdvertisedDeviceCallbacks* pAdvertisedDeviceCallbacks);
void setInterval(uint16_t intervalMSecs);
@@ -56,8 +55,9 @@ public:
void stop();
private:
+ BLEScan(); // One doesn't create a new instance instead one asks the BLEDevice for the singleton.
friend class BLEDevice;
- void gapEventHandler(
+ void handleGAPEvent(
esp_gap_ble_cb_event_t event,
esp_ble_gap_cb_param_t* param);
void parseAdvertisement(BLEClient* pRemoteDevice, uint8_t *payload);