arduino / arduino/ArduinoCore-API

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

未关闭
#57 0 条评论 0 个 reaction 已指派 1 人 已被 @cmaglie 认领 在 GitHub 查看
主要语言
C++
星标
306
派生
150
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。