NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
NimBLEAttribute Class Reference

A base class for BLE attributes. More...

#include <NimBLEAttribute.h>

Inherited by NimBLELocalAttribute, NimBLERemoteService, and NimBLERemoteValueAttribute.

Public Member Functions

const NimBLEUUIDgetUUID () const
 Get the UUID of the attribute.
 
uint16_t getHandle () const
 Get the handle of the attribute.
 

Protected Member Functions

 NimBLEAttribute (const NimBLEUUID &uuid, uint16_t handle)
 Construct a new NimBLEAttribute object.
 
 ~NimBLEAttribute ()=default
 Destroy the NimBLEAttribute object.
 

Detailed Description

A base class for BLE attributes.

Constructor & Destructor Documentation

◆ NimBLEAttribute()

NimBLEAttribute::NimBLEAttribute ( const NimBLEUUID uuid,
uint16_t  handle 
)
inlineprotected

Construct a new NimBLEAttribute object.

Parameters
[in]handleThe handle of the attribute.
[in]uuidThe UUID of the attribute.

Member Function Documentation

◆ getUUID()

const NimBLEUUID & NimBLEAttribute::getUUID ( ) const
inline

Get the UUID of the attribute.

Returns
The UUID.