File tree 2 files changed +3
-4
lines changed
libraries/BluetoothSerial/src
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ static TaskHandle_t _spp_task_handle = NULL;
55
55
static EventGroupHandle_t _spp_event_group = NULL ;
56
56
static EventGroupHandle_t _bt_event_group = NULL ;
57
57
static boolean secondConnectionAttempt;
58
- static esp_spp_cb_t * custom_spp_callback = NULL ;
58
+ static esp_spp_cb_t custom_spp_callback = NULL ;
59
59
static BluetoothSerialDataCb custom_data_callback = NULL ;
60
60
static esp_bd_addr_t current_bd_addr;
61
61
static ConfirmRequestCb confirm_request_callback = NULL ;
@@ -945,7 +945,7 @@ void BluetoothSerial::confirmReply(boolean confirm)
945
945
}
946
946
947
947
948
- esp_err_t BluetoothSerial::register_callback (esp_spp_cb_t * callback)
948
+ esp_err_t BluetoothSerial::register_callback (esp_spp_cb_t callback)
949
949
{
950
950
custom_spp_callback = callback;
951
951
return ESP_OK;
Original file line number Diff line number Diff line change 28
28
#include " BTScan.h"
29
29
#include " BTAdvertisedDevice.h"
30
30
31
-
32
31
typedef std::function<void (const uint8_t *buffer, size_t size)> BluetoothSerialDataCb;
33
32
typedef std::function<void (uint32_t num_val)> ConfirmRequestCb;
34
33
typedef std::function<void ()> KeyRequestCb;
@@ -57,7 +56,7 @@ class BluetoothSerial: public Stream
57
56
void memrelease ();
58
57
void setTimeout (int timeoutMS);
59
58
void onData (BluetoothSerialDataCb cb);
60
- esp_err_t register_callback (esp_spp_cb_t * callback);
59
+ esp_err_t register_callback (esp_spp_cb_t callback);
61
60
62
61
#ifdef CONFIG_BT_SSP_ENABLED
63
62
void onConfirmRequest (ConfirmRequestCb cb);
You can’t perform that action at this time.
0 commit comments