@Citric I specified Serial1 for the Wio Terminal.
It works when I send from the Wio Terminal and receive from the Arduino.
But when I send from the Arduino Uno and receive from the Wio Terminal, the code doesn’t work, I don’t see the “Hello” string received in the Wio Terminal’s Serial Monitor.
// Sender - Arduino Uno
char mystr[6] = "Hello"; //String data
void setup() {
// Begin the Serial at 9600 Baud
Serial.begin(9600);
}
void loop() {
Serial.write(mystr,6); //Write the serial data
delay(1000);
}
// Reciever - Wio Terminal
char mystr[10]; //Initialized variable to store recieved data
void setup() {
// Begin the Serial at 9600 Baud
Serial1.begin(9600);
}
void loop() {
Serial1.readBytes(mystr,6); //Read the serial data and store in var
Serial1.println(mystr); //Print data on Serial Monitor
}