diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 1b808fcb80..f04c92400a 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 1b808fcb809c6ceb74c83c0a09f07a63580ca91c +Subproject commit f04c92400a44ee16e6ee6c02e9247f6d3e213dda diff --git a/examples/bluetooth/nimble/blecent/main/main.c b/examples/bluetooth/nimble/blecent/main/main.c index 604ca3cacf..15102dda50 100644 --- a/examples/bluetooth/nimble/blecent/main/main.c +++ b/examples/bluetooth/nimble/blecent/main/main.c @@ -463,7 +463,8 @@ blecent_gap_event(struct ble_gap_event *event, void *arg) event->notify_rx.attr_handle, OS_MBUF_PKTLEN(event->notify_rx.om)); - /* Attribute data is contained in event->notify_rx.attr_data. */ + /* Attribute data is contained in event->notify_rx.om. Use + * `os_mbuf_copydata` to copy the data received in notification mbuf */ return 0; case BLE_GAP_EVENT_MTU: