1#ifndef SENSESP_SYSTEM_STREAM_PRODUCER_H
2#define SENSESP_SYSTEM_STREAM_PRODUCER_H
41 int max_line_length = 256)
ValueProducer that reads from a Stream and produces each character.
reactesp::StreamEvent * read_event_
StreamCharProducer(Stream *stream)
ValueProducer that reads from a Stream and produces a full line.
reactesp::StreamEvent * read_event_
StreamLineProducer(Stream *stream, std::shared_ptr< reactesp::EventLoop > event_loop=event_loop(), int max_line_length=256)
const int max_line_length_
A base class for any sensor or piece of code that outputs a value for consumption elsewhere.
void emit(const char &new_value)
std::shared_ptr< reactesp::EventLoop > event_loop()