ReactESP 3.3.1
Asynchronous programming for the ESP microcontrollers
Loading...
Searching...
No Matches
reactesp::StreamEvent Class Reference

Event that is triggered when there is input available at the given Arduino Stream. More...

#include <events.h>

Inheritance diagram for reactesp::StreamEvent:
[legend]
Collaboration diagram for reactesp::StreamEvent:
[legend]

Public Member Functions

 StreamEvent (Stream &stream, react_callback callback)
 Construct a new Stream Event object.
void tick (EventLoop *event_loop) override
Public Member Functions inherited from reactesp::UntimedEvent
 UntimedEvent (react_callback callback)
void add (EventLoop *event_loop) override
void remove (EventLoop *event_loop) override
virtual void add (std::shared_ptr< EventLoop > event_loop)
virtual void remove (std::shared_ptr< EventLoop > event_loop)
virtual void tick (EventLoop *event_loop)=0
virtual void tick (std::shared_ptr< EventLoop > event_loop)
Public Member Functions inherited from reactesp::Event
 Event (react_callback callback)
 Construct a new Event object.
 Event (const Event &)=delete
 Event (Event &&)=delete
Eventoperator= (const Event &)=delete
Eventoperator= (Event &&)=delete
Public Member Functions inherited from reactesp::EventInterface
virtual ~EventInterface ()=default
 Default virtual destructor.

Additional Inherited Members

Protected Attributes inherited from reactesp::Event
const react_callback callback

Detailed Description

Event that is triggered when there is input available at the given Arduino Stream.

Definition at line 219 of file events.h.

Constructor & Destructor Documentation

◆ StreamEvent()

reactesp::StreamEvent::StreamEvent ( Stream & stream,
react_callback callback )
inline

Construct a new Stream Event object.

Parameters
streamStream to monitor
callbackCallback to call for new input

Definition at line 230 of file events.h.

Here is the call graph for this function:

Member Function Documentation

◆ tick()

void reactesp::StreamEvent::tick ( EventLoop * event_loop)
overridevirtual

Implements reactesp::EventInterface.

Definition at line 80 of file events.cpp.


The documentation for this class was generated from the following files: