We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae615a commit 235b46fCopy full SHA for 235b46f
main/db_ble.c
@@ -227,7 +227,12 @@ static const struct ble_gatt_svc_def new_ble_svc_gatt_defs[] = {
227
if (conn_handle_subs[i]) {
228
229
/* Write to the characteristics */
230
- int rc = ble_gatts_write(i,ble_spp_svc_gatt_notify_val_handle,data,data_len);
+ int rc = ble_gattc_write_flat(i,ble_spp_svc_gatt_notify_val_handle,
231
+ data, /* Data pointer */
232
+ data_len, /* Data length */
233
+ NULL, /* Callback function */
234
+ NULL /* Callback function arguments */
235
+ );
236
if (rc != 0) {
237
ESP_LOGE(TAG, "Failed to write characteristic value (rc = %d)", rc);
238
return rc;
0 commit comments