Show minor edits - Show changes to markup
SoftwareSerial mySerial(6, 7);
SoftwareSerial mySerial(10,11);
Return a character that was received on the RX pin of the software serial port. Unlike read(), however, subsequent calls to this function will return the same character.
Note that only one SoftwareSerial instance can receive incoming data at a time (select which one with the listen() function).
none
the character read, or -1 if none is available
(:source lang=arduino tabwidth=4:) SoftwareSerial mySerial(6, 7);
void setup() {
mySerial.begin(9600);
}
void loop() {
char c = mySerial.peek();
} (:sourceend:)