This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 07d03d503 all: Don't use deprecated NimBLE API
07d03d503 is described below

commit 07d03d5037d8197a6cc9258ae0fed6313197e0ae
Author: Szymon Janc <[email protected]>
AuthorDate: Fri Feb 20 14:50:17 2026 +0100

    all: Don't use deprecated NimBLE API
    
    Some NimBLE API used was deprecated and is going to be removed.
---
 apps/bsnprph/src/main.c               | 2 +-
 mgmt/smp/transport/ble/src/smp_ble.c  | 3 +--
 net/oic/src/port/mynewt/ble_adaptor.c | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/apps/bsnprph/src/main.c b/apps/bsnprph/src/main.c
index 4b86ee749..e128a6954 100644
--- a/apps/bsnprph/src/main.c
+++ b/apps/bsnprph/src/main.c
@@ -180,7 +180,7 @@ bsnprph_tx_timer_exp(struct os_event *ev)
     if (om == NULL) {
         /* XXX: OOM; log this. */
     } else {
-        rc = ble_gattc_notify_custom(bsnprph_conn_handle,
+        rc = ble_gatts_notify_custom(bsnprph_conn_handle,
                                      gatt_svr_chr_gendata_val_handle, om);
         if (rc != 0) {
             /* XXX: Log this. */
diff --git a/mgmt/smp/transport/ble/src/smp_ble.c 
b/mgmt/smp/transport/ble/src/smp_ble.c
index 212fec503..215f4a317 100644
--- a/mgmt/smp/transport/ble/src/smp_ble.c
+++ b/mgmt/smp/transport/ble/src/smp_ble.c
@@ -185,8 +185,7 @@ smp_ble_event_data_in(struct os_event *ev)
     while ((m_resp = os_mqueue_get(&g_smp_ble_mq)) != NULL) {
         assert(OS_MBUF_USRHDR_LEN(m_resp) >= sizeof (conn_handle));
         memcpy(&conn_handle, OS_MBUF_USRHDR(m_resp), sizeof (conn_handle));
-        ble_gattc_notify_custom(conn_handle, g_ble_smp_attr_handle,
-                                m_resp);
+        ble_gatts_notify_custom(conn_handle, g_ble_smp_attr_handle, m_resp);
     }
 }
 
diff --git a/net/oic/src/port/mynewt/ble_adaptor.c 
b/net/oic/src/port/mynewt/ble_adaptor.c
index b9b9940fa..963b1e13f 100644
--- a/net/oic/src/port/mynewt/ble_adaptor.c
+++ b/net/oic/src/port/mynewt/ble_adaptor.c
@@ -560,7 +560,7 @@ oc_send_buffer_gatt(struct os_mbuf *m)
 #if (MYNEWT_VAL(OC_BLE_CENTRAL) == 1)
         ble_gattc_write_no_rsp(conn_handle, attr_handle, m);
 #else
-        ble_gattc_notify_custom(conn_handle, attr_handle, m);
+        ble_gatts_notify_custom(conn_handle, attr_handle, m);
 #endif
         if (pkt) {
             m = OS_MBUF_PKTHDR_TO_MBUF(pkt);

Reply via email to