Template
Remove "expression cannot be used as a function error" with delete pointer type esp_spp_cb_t
This commit is contained in:
@@ -42,7 +42,7 @@ static TaskHandle_t _spp_task_handle = NULL;
|
||||
static EventGroupHandle_t _spp_event_group = NULL;
|
||||
static EventGroupHandle_t _bt_event_group = NULL;
|
||||
static boolean secondConnectionAttempt;
|
||||
static esp_spp_cb_t * custom_spp_callback = NULL;
|
||||
static esp_spp_cb_t custom_spp_callback = NULL;
|
||||
static BluetoothSerialDataCb custom_data_callback = NULL;
|
||||
static esp_bd_addr_t current_bd_addr;
|
||||
static ConfirmRequestCb confirm_request_callback = NULL;
|
||||
@@ -790,7 +790,7 @@ void BluetoothSerial::confirmReply(boolean confirm)
|
||||
}
|
||||
|
||||
|
||||
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t * callback)
|
||||
esp_err_t BluetoothSerial::register_callback(esp_spp_cb_t callback)
|
||||
{
|
||||
custom_spp_callback = callback;
|
||||
return ESP_OK;
|
||||
|
||||
@@ -37,7 +37,7 @@ class BluetoothSerial: public Stream
|
||||
void flush();
|
||||
void end(void);
|
||||
void onData(BluetoothSerialDataCb cb);
|
||||
esp_err_t register_callback(esp_spp_cb_t * callback);
|
||||
esp_err_t register_callback(esp_spp_cb_t callback);
|
||||
|
||||
void onConfirmRequest(ConfirmRequestCb cb);
|
||||
void onAuthComplete(AuthCompleteCb cb);
|
||||
|
||||
Reference in New Issue
Block a user