diff --git a/_a_t_c___mi_thermometer_8h_source.html b/_a_t_c___mi_thermometer_8h_source.html
index 8842efa..1fad3f1 100644
--- a/_a_t_c___mi_thermometer_8h_source.html
+++ b/_a_t_c___mi_thermometer_8h_source.html
@@ -126,80 +126,84 @@
-
-
-
-
-
- 48 #ifndef ATC_MiThermometer_h
- 49 #define ATC_MiThermometer_h
-
-
- 52 #include <NimBLEDevice.h>
-
+
+
+
+
+
+
+
+
+
+ 52 #ifndef ATC_MiThermometer_h
+ 53 #define ATC_MiThermometer_h
-
-
-
-
-
-
-
-
-
-
-
-
-
- 68 bool controlParameters;
- 69 bool tempTriggerEvent;
- 70 bool humiTriggerEvent;
-
-
-
-
+
+ 56 #include <NimBLEDevice.h>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 72 bool controlParameters;
+ 73 bool tempTriggerEvent;
+ 74 bool humiTriggerEvent;
-
-
-
-
- 90 _known_sensors = known_sensors;
- 91 data.resize(known_sensors.size());
-
-
-
-
-
- 103 _pBLEScan->clearResults();
-
-
- 111 unsigned getData(uint32_t duration);
-
-
-
-
-
-
- 124 std::vector<std::string> _known_sensors;
- 125 NimBLEScan* _pBLEScan;
-
-
-BLE ATC_MiThermometer thermometer/hygrometer sensor client.
Definition: ATC_MiThermometer.h:82
-void begin(void)
Initialization.
Definition: ATC_MiThermometer.cpp:76
-void resetData(void)
Set sensor data invalid.
Definition: ATC_MiThermometer.cpp:183
-std::vector< MiThData_t > data
Sensor data.
Definition: ATC_MiThermometer.h:121
-unsigned getData(uint32_t duration)
Get data from sensors by running a BLE scan.
Definition: ATC_MiThermometer.cpp:89
-ATC_MiThermometer(std::vector< std::string > known_sensors)
Constructor.
Definition: ATC_MiThermometer.h:89
-void clearScanResults(void)
Delete results from BLEScan buffer to release memory.
Definition: ATC_MiThermometer.h:102
-Definition: ATC_MiThermometer.h:57
-uint8_t batt_level
battery level [%]
Definition: ATC_MiThermometer.h:63
-std::string name
BT device name.
Definition: ATC_MiThermometer.h:59
-bool valid
data valid
Definition: ATC_MiThermometer.h:58
-uint16_t humidity
humidity x 100%
Definition: ATC_MiThermometer.h:61
-uint8_t count
measurement count
Definition: ATC_MiThermometer.h:65
-int16_t temperature
temperature x 100°C
Definition: ATC_MiThermometer.h:60
-uint16_t batt_voltage
battery voltage [mv]
Definition: ATC_MiThermometer.h:62
-int16_t rssi
RSSI [dBm].
Definition: ATC_MiThermometer.h:64
+
+
+
+
+
+
+
+
+ 94 _known_sensors = known_sensors;
+ 95 data.resize(known_sensors.size());
+
+
+ 105 void begin(
bool activeScan =
true);
+
+
+ 111 _pBLEScan->clearResults();
+
+
+ 119 unsigned getData(uint32_t duration);
+
+
+
+
+
+
+ 132 std::vector<std::string> _known_sensors;
+ 133 NimBLEScan* _pBLEScan;
+
+
+BLE ATC_MiThermometer thermometer/hygrometer sensor client.
Definition: ATC_MiThermometer.h:86
+void resetData(void)
Set sensor data invalid.
Definition: ATC_MiThermometer.cpp:186
+std::vector< MiThData_t > data
Sensor data.
Definition: ATC_MiThermometer.h:129
+void begin(bool activeScan=true)
Initialization.
Definition: ATC_MiThermometer.cpp:79
+unsigned getData(uint32_t duration)
Get data from sensors by running a BLE scan.
Definition: ATC_MiThermometer.cpp:92
+ATC_MiThermometer(std::vector< std::string > known_sensors)
Constructor.
Definition: ATC_MiThermometer.h:93
+void clearScanResults(void)
Delete results from BLEScan buffer to release memory.
Definition: ATC_MiThermometer.h:110
+Definition: ATC_MiThermometer.h:61
+uint8_t batt_level
battery level [%]
Definition: ATC_MiThermometer.h:67
+std::string name
BT device name.
Definition: ATC_MiThermometer.h:63
+bool valid
data valid
Definition: ATC_MiThermometer.h:62
+uint16_t humidity
humidity x 100%
Definition: ATC_MiThermometer.h:65
+uint8_t count
measurement count
Definition: ATC_MiThermometer.h:69
+int16_t temperature
temperature x 100°C
Definition: ATC_MiThermometer.h:64
+uint16_t batt_voltage
battery voltage [mv]
Definition: ATC_MiThermometer.h:66
+int16_t rssi
RSSI [dBm].
Definition: ATC_MiThermometer.h:68
diff --git a/class_a_t_c___mi_thermometer-members.html b/class_a_t_c___mi_thermometer-members.html
index 3814cde..9b114c5 100644
--- a/class_a_t_c___mi_thermometer-members.html
+++ b/class_a_t_c___mi_thermometer-members.html
@@ -90,7 +90,7 @@
This is the complete list of members for ATC_MiThermometer, including all inherited members.
ATC_MiThermometer(std::vector< std::string > known_sensors) | ATC_MiThermometer | inline |
- begin(void) | ATC_MiThermometer | |
+ begin(bool activeScan=true) | ATC_MiThermometer | |
clearScanResults(void) | ATC_MiThermometer | inline |
data | ATC_MiThermometer | |
getData(uint32_t duration) | ATC_MiThermometer | |
diff --git a/class_a_t_c___mi_thermometer.html b/class_a_t_c___mi_thermometer.html
index 5c05aea..efffa27 100644
--- a/class_a_t_c___mi_thermometer.html
+++ b/class_a_t_c___mi_thermometer.html
@@ -101,10 +101,9 @@
| ATC_MiThermometer (std::vector< std::string > known_sensors) |
| Constructor. More...
|
|
-
-void | begin (void) |
- | Initialization.
|
- |
+void | begin (bool activeScan=true) |
+ | Initialization. More...
|
+ |
void | clearScanResults (void) |
| Delete results from BLEScan buffer to release memory.
|
@@ -162,6 +161,32 @@
+
+◆ begin()
+
+
+
+
+
+ void ATC_MiThermometer::begin |
+ ( |
+ bool |
+ activeScan = true | ) |
+ |
+
+
+
+
+
Initialization.
+
- Parameters
-
+
+ activeScan | Set to true for achtive scan, which uses more power, but get results faster. As a side effect, the device name is received (most of the times). |
+
+
+
+
+
+
◆ getData()
diff --git a/class_a_t_c___mi_thermometer.js b/class_a_t_c___mi_thermometer.js
index c357923..825425b 100644
--- a/class_a_t_c___mi_thermometer.js
+++ b/class_a_t_c___mi_thermometer.js
@@ -1,7 +1,7 @@
var class_a_t_c___mi_thermometer =
[
[ "ATC_MiThermometer", "class_a_t_c___mi_thermometer.html#af8bb1ea6e709d0032821a0792c05b0c1", null ],
- [ "begin", "class_a_t_c___mi_thermometer.html#a02374900efd29ea98378666b158e5139", null ],
+ [ "begin", "class_a_t_c___mi_thermometer.html#a5670fa670d155bfce2def7b7ee07accf", null ],
[ "clearScanResults", "class_a_t_c___mi_thermometer.html#aff59b5d84a20307db89c2404443dd0c4", null ],
[ "getData", "class_a_t_c___mi_thermometer.html#a9ea653d4d465310eb012ad2fc4a345a4", null ],
[ "resetData", "class_a_t_c___mi_thermometer.html#a48f7a1a28d8e12a92209ad9ef47cac59", null ],
diff --git a/functions.html b/functions.html
index 75ada09..ca5756a 100644
--- a/functions.html
+++ b/functions.html
@@ -93,7 +93,7 @@
: MiThData_S
begin()
-: ATC_MiThermometer
+: ATC_MiThermometer
clearScanResults()
: ATC_MiThermometer
diff --git a/functions_func.html b/functions_func.html
index 32312fa..9f7fec5 100644
--- a/functions_func.html
+++ b/functions_func.html
@@ -87,7 +87,7 @@
: ATC_MiThermometer
begin()
-: ATC_MiThermometer
+: ATC_MiThermometer
clearScanResults()
: ATC_MiThermometer
diff --git a/navtreeindex0.js b/navtreeindex0.js
index 4227bf6..2d79558 100644
--- a/navtreeindex0.js
+++ b/navtreeindex0.js
@@ -3,9 +3,9 @@ var NAVTREEINDEX0 =
"_a_t_c___mi_thermometer_8h_source.html":[1,0,0,0],
"annotated.html":[0,0],
"class_a_t_c___mi_thermometer.html":[0,0,0],
-"class_a_t_c___mi_thermometer.html#a02374900efd29ea98378666b158e5139":[0,0,0,1],
"class_a_t_c___mi_thermometer.html#a48f7a1a28d8e12a92209ad9ef47cac59":[0,0,0,4],
"class_a_t_c___mi_thermometer.html#a511a8627643f52c335f22ffc4fc91b89":[0,0,0,5],
+"class_a_t_c___mi_thermometer.html#a5670fa670d155bfce2def7b7ee07accf":[0,0,0,1],
"class_a_t_c___mi_thermometer.html#a9ea653d4d465310eb012ad2fc4a345a4":[0,0,0,3],
"class_a_t_c___mi_thermometer.html#af8bb1ea6e709d0032821a0792c05b0c1":[0,0,0,0],
"class_a_t_c___mi_thermometer.html#aff59b5d84a20307db89c2404443dd0c4":[0,0,0,2],
diff --git a/search/all_1.js b/search/all_1.js
index 904481c..bd2d6c1 100644
--- a/search/all_1.js
+++ b/search/all_1.js
@@ -2,5 +2,5 @@ var searchData=
[
['batt_5flevel_1',['batt_level',['../struct_mi_th_data___s.html#a1d77512ebbde9e8138702027869a1dbe',1,'MiThData_S']]],
['batt_5fvoltage_2',['batt_voltage',['../struct_mi_th_data___s.html#ade3171e8150fd05327418c9f375b41b4',1,'MiThData_S']]],
- ['begin_3',['begin',['../class_a_t_c___mi_thermometer.html#a02374900efd29ea98378666b158e5139',1,'ATC_MiThermometer']]]
+ ['begin_3',['begin',['../class_a_t_c___mi_thermometer.html#a5670fa670d155bfce2def7b7ee07accf',1,'ATC_MiThermometer']]]
];
diff --git a/search/functions_1.js b/search/functions_1.js
index 69c1ff1..2c64a58 100644
--- a/search/functions_1.js
+++ b/search/functions_1.js
@@ -1,4 +1,4 @@
var searchData=
[
- ['begin_20',['begin',['../class_a_t_c___mi_thermometer.html#a02374900efd29ea98378666b158e5139',1,'ATC_MiThermometer']]]
+ ['begin_20',['begin',['../class_a_t_c___mi_thermometer.html#a5670fa670d155bfce2def7b7ee07accf',1,'ATC_MiThermometer']]]
];