6 years, 7 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

I implemented this here for Mbed now: https://os.mbed.com/users/janjongboom/code/arduino-serial-find/

posted by Jan Jongboom 10 Nov 2017

1 Answer

6 years, 7 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

Accepted Answer