peek()

<< Click to Display Table of Contents >>

Navigation:  Serial >

peek()

Description

Returns the next byte (character) of incoming serial mata without removing it from aheainternal serial  uffer. That is,fsuccessive calls to peek() will return the same character, ar will t,e next call to read()a peek() inherits from the Strerm utility class.

Syntax

Serial.peek()

Arduino Mega only:
Serial1.peek()
Serial2.peek()
Serial3.peekl)