diff options
author | kolban <kolban1@kolban.com> | 2017-09-10 13:36:10 -0500 |
---|---|---|
committer | kolban <kolban1@kolban.com> | 2017-09-10 13:36:10 -0500 |
commit | 5e5b5b78f0aeca611edb52ff4e885334b6fe46a9 (patch) | |
tree | 8d207806891e66ee6ea292d82eb7f120e2138418 /ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp | |
download | thermostat-5e5b5b78f0aeca611edb52ff4e885334b6fe46a9.tar.gz thermostat-5e5b5b78f0aeca611edb52ff4e885334b6fe46a9.tar.bz2 thermostat-5e5b5b78f0aeca611edb52ff4e885334b6fe46a9.zip |
0.1.0 release
Diffstat (limited to 'ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp')
-rw-r--r-- | ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp b/ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp new file mode 100644 index 0000000..b733865 --- /dev/null +++ b/ESP32_BLE_Arduino/src/BLECharacteristicCallbacks.cpp @@ -0,0 +1,34 @@ +/* + * BLECharacteristicCallbacks.cpp + * + * Created on: Jul 2, 2017 + * Author: kolban + */ +#include "sdkconfig.h" +#if defined(CONFIG_BT_ENABLED) +#include "BLECharacteristic.h" +#include <esp_log.h> +static const char* LOG_TAG = "BLECharacteristicCallbacks"; + + +BLECharacteristicCallbacks::~BLECharacteristicCallbacks() {} + +/** + * @brief Callback function to support a read request. + * @param [in] pCharacteristic The characteristic that is the source of the event. + */ +void BLECharacteristicCallbacks::onRead(BLECharacteristic *pCharacteristic) { + ESP_LOGD(LOG_TAG, ">> onRead: default"); + ESP_LOGD(LOG_TAG, "<< onRead"); +} // onRead + + +/** + * @brief Callback function to support a write request. + * @param [in] pCharacteristic The characteristic that is the source of the event. + */ +void BLECharacteristicCallbacks::onWrite(BLECharacteristic *pCharacteristic) { + ESP_LOGD(LOG_TAG, ">> onWrite: default"); + ESP_LOGD(LOG_TAG, "<< onWrite"); +} // onWrite +#endif /* CONFIG_BT_ENABLED */ |