|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <plugin.hpp>


Public Member Functions | |
| void | stop (Scheduler *scheduler=nullptr) |
| ~PackageHandler () | |
| bool | sendPackage (const protocol::PackageInterface *pkg) |
| void | onPackage (int type, std::function< bool(protocol::Variant &)> function) |
| std::shared_ptr< Task > | addTask (Scheduler &scheduler, unsigned long aInterval, long aIterations, std::function< void()> aCallback) |
| std::shared_ptr< Task > | addTask (Scheduler &scheduler, std::function< void()> aCallback) |
Public Member Functions inherited from painlessmesh::layout::Layout< T > | |
| uint32_t | getNodeId () const |
| bool | isRoot () const |
| protocol::NodeTree | asNodeTree () |
Protected Member Functions | |
| void | reclaimQuarantinedTasks () |
Protected Attributes | |
| callback::MeshPackageCallbackList< T > | callbackList |
| std::list< std::shared_ptr< Task > > | taskList = {} |
| std::list< std::pair< Scheduler *, std::shared_ptr< Task > > > | quarantinedTasks |
Protected Attributes inherited from painlessmesh::layout::Layout< T > | |
| uint32_t | nodeId = 0 |
| bool | root = false |
| bool | hasTimeAuthority = false |
Additional Inherited Members | |
Public Attributes inherited from painlessmesh::layout::Layout< T > | |
| size_t | stability = 0 |
| std::list< std::shared_ptr< T > > | subs |
Handle different plugins
Responsible for
|
inline |
|
inline |
|
inline |
Add a task to the scheduler
The task will be stored in a list and a shared_ptr to the task will be returned. If the task is anonymous (i.e. no shared_ptr to it is held anywhere else) and disabled then it will be reused when a new task is added.
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |