Skip to content

getReadIndex()

CreateiveRobotics edited this page Mar 7, 2020 · 2 revisions
uint16_t getReadIndex()

Returns the position of the readIndex variable in the buffer. This is used to keep track of payload items when processing them and it should always be located at the start of the next item in the payload. If all payloads have been processed, or it there are none, this will return zero.

Clone this wiki locally