Arduino Function: GSMclient.peek

Description

This method returns the next character (byte) of an incoming message removing it from the message. After, the calls to peek() and read() return the same character. peek() inherits from the Stream utility class.

Syntax

client.peek()

Returns

 int - the next byte in an incoming message.


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