summaryrefslogtreecommitdiff
path: root/src/BLECharacteristicCallbacks.cpp
blob: b7338659f124b2f5c8e636ef9ea9bf577786e5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 */