nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Nordic Status Message (NSMS) GATT Service

Nordic Status Message (NSMS) GATT Service API. More...

Data Structures

struct  bt_nsms_status_str
 The status. More...
 
struct  bt_nsms
 Nordic Status Message Service structure. More...
 

Macros

#define BT_UUID_NSMS_VAL    BT_UUID_128_ENCODE(0x57a70000, 0x9350, 0x11ed, 0xa1eb, 0x0242ac120002)
 UUID of the NSMS Service.
 
#define BT_UUID_NSMS_STATUS_VAL    BT_UUID_128_ENCODE(0x57a70001, 0x9350, 0x11ed, 0xa1eb, 0x0242ac120002)
 UUID of the Status characteristic.
 
#define BT_UUID_NSMS_SERVICE   BT_UUID_DECLARE_128(BT_UUID_NSMS_VAL)
 
#define BT_UUID_NSMS_STATUS   BT_UUID_DECLARE_128(BT_UUID_NSMS_STATUS_VAL)
 
#define BT_NSMS_SECURITY_LEVEL_NONE   0
 
#define BT_NSMS_SECURITY_LEVEL_ENCRYPT   1
 
#define BT_NSMS_SECURITY_LEVEL_AUTHEN   2
 
#define BT_NSMS_SERVICE_DEF(_name, ...)    BT_GATT_SERVICE_DEFINE(_name, __VA_ARGS__)
 
#define BT_NSMS_DEF(_nsms, _name, _slevel, _status_init, _len_max)
 Create the Nordic Status Message Service instance.
 

Functions

ssize_t bt_nsms_status_read (struct bt_conn *conn, struct bt_gatt_attr const *attr, void *buf, uint16_t len, uint16_t offset)
 Nordic Status Message Service reading command.
 
int bt_nsms_set_status (const struct bt_nsms *nsms_obj, const char *status)
 Set status.
 

Detailed Description

Nordic Status Message (NSMS) GATT Service API.