From 7bad9296b3daadb1dee22da6b99631e43d9adf42 Mon Sep 17 00:00:00 2001 From: Matthias Prinke Date: Fri, 26 Apr 2024 07:55:57 +0200 Subject: [PATCH] Updated history, added parameter activeScan to begin() --- src/ATC_MiThermometer.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ATC_MiThermometer.h b/src/ATC_MiThermometer.h index 6144583..559cd1b 100644 --- a/src/ATC_MiThermometer.h +++ b/src/ATC_MiThermometer.h @@ -39,6 +39,10 @@ // History: // // 20221123 Created +// 20240403 Added reedSwitchState, gpioTrgOutput, controlParameters, +// tempTriggerEvent &humiTriggerEvent +// 20240425 Added device name +// 20240426 Added parameter activeScan to begin() // // ToDo: // - @@ -92,9 +96,13 @@ class ATC_MiThermometer { }; /*! - \brief Initialization. - */ - void begin(void); + * \brief Initialization. + * + * \param 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). + */ + void begin(bool activeScan = true); /*! \brief Delete results from BLEScan buffer to release memory.