Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_nus_cb Struct Reference

Callbacks for getting notified on NUS Service occurrences. More...

#include <nus.h>

Data Fields

void(* notif_enabled )(bool enabled, void *ctx)
 Notifications subscription changed.
 
void(* received )(struct bt_conn *conn, const void *data, uint16_t len, void *ctx)
 Received Data.
 
void * ctx
 Internal member.
 

Detailed Description

Callbacks for getting notified on NUS Service occurrences.

Field Documentation

◆ ctx

void* bt_nus_cb::ctx

Internal member.

Provided as a callback argument for user context

◆ notif_enabled

void(* bt_nus_cb::notif_enabled) (bool enabled, void *ctx)

Notifications subscription changed.

Parameters
enabledFlag that is true if notifications were enabled, false if they were disabled.
ctxUser context provided in the callback structure.

◆ received

void(* bt_nus_cb::received) (struct bt_conn *conn, const void *data, uint16_t len, void *ctx)

Received Data.

Parameters
connPeer Connection object.
dataPointer to buffer with data received.
lenSize in bytes of data received.
ctxUser context provided in the callback structure.

The documentation for this struct was generated from the following file: