arduino / arduino/ArduinoCore-API

Multi-target versions of Stream::find() and Stream::findUntil().

Open
#57 0 comments 0 reactions 1 assignee Claimed by @cmaglie View on GitHub
Dominant language
C++
Stars
306
Forks
150
PR merge metrics
No merged PRs in 30d

Description

Sometimes, you want to read / parse incoming stream data until you find one of two (or a few) different strings. This is particularly useful when dealing with Serial-based (or other Stream based) APIs, like the Quectel M10 GSM module or the ESP8266 wifi module.

It's not entirely clear to me what the best API / implementation would be, since there are a variety of use cases / needs. For example, with those modules, you may want to look for either an okay message, an error message, or an unsolicited event that's not in reply to your previous command.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.