nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
nus_client.h File Reference
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/conn.h>
#include <bluetooth/gatt_dm.h>

Go to the source code of this file.

Data Structures

struct  bt_nus_client_handles
 Handles on the connected peer device that are needed to interact with the device. More...
 
struct  bt_nus_client_cb
 NUS Client callback structure. More...
 
struct  bt_nus_client
 NUS Client structure. More...
 
struct  bt_nus_client_init_param
 NUS Client initialization structure. More...
 

Functions

int bt_nus_client_init (struct bt_nus_client *nus, const struct bt_nus_client_init_param *init_param)
 Initialize the NUS Client module.
 
int bt_nus_client_send (struct bt_nus_client *nus, const uint8_t *data, uint16_t len)
 Send data to the server.
 
int bt_nus_handles_assign (struct bt_gatt_dm *dm, struct bt_nus_client *nus)
 Assign handles to the NUS Client instance.
 
int bt_nus_subscribe_receive (struct bt_nus_client *nus)
 Request the peer to start sending notifications for the TX Characteristic.