arduino / arduino/ArduinoCore-sam

Serial.readBytesUntil() is either misleading or buggy

Open
#125 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Description

The method `Serial.readBytesUntil()` does not just read bytes until a delimiter but the part after the delimiter as well. This means either the name of the method is misleading or the method is buggy.

https://forum.arduino.cc/t/how-can-i-read-bytes-until-end-of-text-delimiter/898739/10

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the implementation and contract for Serial.readBytesUntil() in ArduinoCore-sam, since no file or test is named. Read the linked forum discussion to determine the intended delimiter behavior; done means the behavior or naming is unambiguous and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.