esp-nimble-cpp 2.0.2
Loading...
Searching...
No Matches
NimBLELocalAttribute Class Reference

A base class for local BLE attributes. More...

#include <NimBLELocalAttribute.h>

Inherits NimBLEAttribute.

Inherited by NimBLELocalValueAttribute, and NimBLEService.

Public Member Functions

uint8_t getRemoved () const
 Get the removed flag.
 
- Public Member Functions inherited from NimBLEAttribute
const NimBLEUUIDgetUUID () const
 Get the UUID of the attribute.
 
uint16_t getHandle () const
 Get the handle of the attribute.
 

Protected Member Functions

 NimBLELocalAttribute (const NimBLEUUID &uuid, uint16_t handle)
 Construct a local attribute.
 
 ~NimBLELocalAttribute ()=default
 Destroy the local attribute.
 
void setRemoved (uint8_t removed)
 Set the removed flag.
 
- Protected Member Functions inherited from NimBLEAttribute
 NimBLEAttribute (const NimBLEUUID &uuid, uint16_t handle)
 Construct a new NimBLEAttribute object.
 
 ~NimBLEAttribute ()=default
 Destroy the NimBLEAttribute object.
 

Detailed Description

A base class for local BLE attributes.

Member Function Documentation

◆ getRemoved()

uint8_t NimBLELocalAttribute::getRemoved ( ) const
inline

Get the removed flag.

Returns
The removed flag.

◆ setRemoved()

void NimBLELocalAttribute::setRemoved ( uint8_t  removed)
inlineprotected

Set the removed flag.

Parameters
[in]removedThe removed flag.