1#ifndef SENSESP_SYSTEM_STREAM_PRODUCER_H
2#define SENSESP_SYSTEM_STREAM_PRODUCER_H
22 char c = stream_->read();
40 std::shared_ptr<reactesp::EventLoop> event_loop_param =
event_loop(),
41 int max_line_length = 256)
52 std::unique_ptr<char[]>
buf_;
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.
std::unique_ptr< char[]> buf_
reactesp::StreamEvent * read_event_
StreamLineProducer(Stream *stream, std::shared_ptr< reactesp::EventLoop > event_loop_param=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 String &new_value)
std::shared_ptr< reactesp::EventLoop > event_loop()