arduino / arduino/ArduinoCore-API

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

Aperta
#57 0 commenti 0 reazioni 1 assegnatario Rivendicata da @cmaglie Vedi su GitHub
Lingua principale
C++
Stelle
306
Fork
150
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.