#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
// SoftwareSerial mySerial();
void setup() {
Serial.begin(9600); // Open serial communications and wait for port to open:
Serial.println("ready");
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
mySerial.begin(9600); // set the data rate for the SoftwareSerial port
mySerial.println("Hello, world?");
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
} }