esp-nimble-cpp 2.0.2
Loading...
Searching...
No Matches
NimBLETaskData Struct Reference

A structure to hold data for a task that is waiting for a response. More...

#include <NimBLEUtils.h>

Public Member Functions

 NimBLETaskData (void *pInstance=nullptr, int flags=0, void *buf=nullptr)
 Construct a NimBLETaskData instance.
 
 ~NimBLETaskData ()
 Destructor.
 

Detailed Description

A structure to hold data for a task that is waiting for a response.

This structure is used in conjunction with NimBLEUtils::taskWait() and NimBLEUtils::taskRelease(). All items are optional, the m_pHandle will be set in taskWait().

Constructor & Destructor Documentation

◆ NimBLETaskData()

NimBLETaskData::NimBLETaskData ( void *  pInstance = nullptr,
int  flags = 0,
void *  buf = nullptr 
)

Construct a NimBLETaskData instance.

Parameters
[in]pInstanceAn instance of the class that will be waiting.
[in]flagsGeneral purpose flags for the caller.
[in]bufA buffer for data.