Main event loop of a EventLoop program.
More...
#include <ReactESP.h>
Main event loop of a EventLoop program.
Definition at line 260 of file ReactESP.h.
◆ EventLoop() [1/3]
reactesp::EventLoop::EventLoop |
( |
| ) |
|
|
inline |
◆ EventLoop() [2/3]
reactesp::EventLoop::EventLoop |
( |
const EventLoop & | | ) |
|
|
delete |
◆ EventLoop() [3/3]
reactesp::EventLoop::EventLoop |
( |
EventLoop && | | ) |
|
|
delete |
◆ onAvailable()
Create a new StreamEvent.
- Parameters
-
stream | Arduino Stream object to monitor |
callback | Callback function |
- Returns
- StreamEvent*
Definition at line 162 of file ReactESP.cpp.
◆ onDelay()
Create a new DelayEvent.
- Parameters
-
delay | Delay, in milliseconds |
callback | Callback function |
- Returns
- DelayEvent*
Definition at line 136 of file ReactESP.cpp.
◆ onDelayMicros()
Create a new DelayEvent.
- Parameters
-
delay | Delay, in microseconds |
callback | Callback function |
- Returns
- DelayEvent*
Definition at line 142 of file ReactESP.cpp.
◆ onInterrupt()
Create a new ISREvent (interrupt event)
- Parameters
-
pin_number | GPIO pin number |
mode | One of CHANGE, RISING, FALLING |
callback | Interrupt handler to call. This should be a very simple function, ideally setting a flag variable or incrementing a counter. The function should be defined with ICACHE_RAM_ATTR. |
- Returns
- ISREvent*
Definition at line 168 of file ReactESP.cpp.
◆ onRepeat()
Create a new RepeatEvent.
- Parameters
-
delay | Interval, in milliseconds |
callback | Callback function |
- Returns
- RepeatEvent*
Definition at line 149 of file ReactESP.cpp.
◆ onRepeatMicros()
Create a new RepeatEvent.
- Parameters
-
delay | Interval, in microseconds |
callback | Callback function |
- Returns
- RepeatEvent*
Definition at line 155 of file ReactESP.cpp.
◆ onTick()
Create a new TickEvent.
- Parameters
-
callback | Callback function to be called at every loop execution |
- Returns
- TickEvent*
Definition at line 175 of file ReactESP.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ remove()
void reactesp::EventLoop::remove |
( |
Event * | event | ) |
|
Remove a event from the list of active events.
- Parameters
-
Definition at line 181 of file ReactESP.cpp.
◆ tick()
void reactesp::EventLoop::tick |
( |
| ) |
|
◆ Event
◆ ISREvent
◆ RepeatEvent
◆ TimedEvent
◆ UntimedEvent
The documentation for this class was generated from the following files: