Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Documentation for stream.find() and derivatives is too sparse

Open pogo555 opened this issue 3 years ago • 4 comments

The documentation for these functions is almost obscure. It mentions that a target string is searched for, but does not say that this is not a String object or null terminated array of char.

The documentation for Serial.find() says that characters are read from the buffer, but does not say that they are discarded.

The documentation for file.find() is not included in the documentation for the SD library. This function alters the file position, but this is not mentioned anywhere.

Every instance could be improved with a simple best use example.

pogo555 avatar May 08 '21 06:05 pogo555

This issue should be moved to https://github.com/arduino/reference-en

alranel avatar May 12 '21 14:05 alranel

@alranel it's tricky because the report covers two different areas of the documentation.

This part is relevant to the Language Reference:

The documentation for Serial.find() says that characters are read from the buffer, but does not say that they are discarded.

but this part is not relevant to the Language Reference:

The documentation for file.find() is not included in the documentation for the SD library. This function alters the file position, but this is not mentioned anywhere.

per1234 avatar May 12 '21 14:05 per1234

So what can we do about this Issue? @alranel @per1234

I can assign the documentation to someone in Content if that would help.

kengdahl avatar Dec 21 '21 13:12 kengdahl

I can assign the documentation to someone in Content if that would help.

That sounds good to me.

per1234 avatar Dec 21 '21 13:12 per1234