File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
libraries/BluetoothSerial/src Expand file tree Collapse file tree 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;
5555static EventGroupHandle_t _spp_event_group = NULL ;
5656static EventGroupHandle_t _bt_event_group = NULL ;
5757static boolean secondConnectionAttempt;
58- static esp_spp_cb_t * custom_spp_callback = NULL ;
58+ static esp_spp_cb_t custom_spp_callback = NULL ;
5959static BluetoothSerialDataCb custom_data_callback = NULL ;
6060static esp_bd_addr_t current_bd_addr;
6161static ConfirmRequestCb confirm_request_callback = NULL ;
@@ -945,7 +945,7 @@ void BluetoothSerial::confirmReply(boolean confirm)
945945}
946946
947947
948- esp_err_t BluetoothSerial::register_callback (esp_spp_cb_t * callback)
948+ esp_err_t BluetoothSerial::register_callback (esp_spp_cb_t callback)
949949{
950950 custom_spp_callback = callback;
951951 return ESP_OK;
Original file line number Diff line number Diff line change 2828#include " BTScan.h"
2929#include " BTAdvertisedDevice.h"
3030
31-
3231typedef std::function<void (const uint8_t *buffer, size_t size)> BluetoothSerialDataCb;
3332typedef std::function<void (uint32_t num_val)> ConfirmRequestCb;
3433typedef std::function<void ()> KeyRequestCb;
@@ -57,7 +56,7 @@ class BluetoothSerial: public Stream
5756 void memrelease ();
5857 void setTimeout (int timeoutMS);
5958 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);
6160
6261#ifdef CONFIG_BT_SSP_ENABLED
6362 void onConfirmRequest (ConfirmRequestCb cb);
You can’t perform that action at this time.
0 commit comments