Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
Serial.find
Is there a function / library that is equivalent to Arduino library Serial.find ()?
Reference = http://www.arduino.cc/en/Serial/Find
1 Answer
9 years, 6 months ago.
Hi Wai,
It doesn't support the find function in the library, but it would be fairly straightforward to add it. The specific code that makes the Arduino Serial.find code isn't specific to Arduino.
It's implementation can be found here: https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/Stream.cpp
Hope that helps!
-Brian
I implemented this here for Mbed now: https://os.mbed.com/users/janjongboom/code/arduino-serial-find/
posted by Jan Jongboom 10 Nov 2017