|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <callback.hpp>
Public Member Functions | |
| void | onPackage (int id, std::function< void(Args...)> func) |
| size_t | size () |
| size_t | count (int id) |
| void | clear () |
| int | execute (int id, Args... args) |
Protected Types | |
| using | CallbackMap = std::map< int, List< Args... > > |
Protected Attributes | |
| std::shared_ptr< CallbackMap > | callbackMap = std::make_shared<CallbackMap>() |
| std::shared_ptr< CallbackMap > | pendingCallbackMap |
| size_t | dispatchDepth = 0 |
| bool | clearPending = false |
Manage callbacks for receiving packages
|
protected |
|
inline |
|
inline |
How many callbacks are registered for one package id.
|
inline |
Execute all the callbacks associated with a certain package
|
inline |
Add a callback for specific package id
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |