Arduino Function: Process.write

Description

This function returns the next byte (character) of incoming data from a Linux process without removing it from the internal buffer. Successive calls to peek() will return the same character, as will the next call to read(). peek() inherits from the Stream utility class.

Syntax

Process.peek()

Returns

 int : the first byte of incoming data available (or -1 if no data is available)


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc