From da3cd9521844669a2fdea2d8ecd275f46304f2d3 Mon Sep 17 00:00:00 2001 From: taks <857tn859@gmail.com> Date: Thu, 10 Oct 2024 18:58:02 +0900 Subject: [PATCH] wip --- src/server/ble_characteristic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/ble_characteristic.rs b/src/server/ble_characteristic.rs index 1f8488a..41bfe17 100644 --- a/src/server/ble_characteristic.rs +++ b/src/server/ble_characteristic.rs @@ -282,7 +282,7 @@ impl BLECharacteristic { let om = unsafe { sys::ble_hs_mbuf_from_flat(value.as_ptr() as _, value.len() as _) }; - let rc = unsafe { sys::ble_gattc_indicate_custom(conn_handle, self.handle, om) }; + let rc = unsafe { sys::ble_gatts_indicate_custom(conn_handle, self.handle, om) }; if rc != 0 { server.clear_indicate_wait(conn_handle); } @@ -290,7 +290,7 @@ impl BLECharacteristic { } else if flag.contains(NimbleSub::NOTIFY) && self.properties.contains(NimbleProperties::NOTIFY) { let om = unsafe { sys::ble_hs_mbuf_from_flat(value.as_ptr() as _, value.len() as _) }; - ble!(unsafe { sys::ble_gattc_notify_custom(conn_handle, self.handle, om) }) + ble!(unsafe { sys::ble_gatts_notify_custom(conn_handle, self.handle, om) }) } else { BLEError::convert(sys::BLE_HS_EINVAL) }