Alright, so I just learned from this post Advanced Standalone Serial Monitor that every character that is written into terminal is transmitted to serial. To verify that, I wrote the following short code:
#include <Arduino.h>
void setup() {
// initiate Serial
Serial.begin(115200);
// wait for serial to come online
while(!Serial);
Serial.println("Serial is ready to accept input");
}
void loop() {
// put your main code here, to run repeatedly:
}
void serialEvent(){
while(Serial.available()){
Serial.print("Serial received > ");
Serial.println((char)Serial.read());
}
}
And it behaves as expect. Now I’m going to go research how to transmit only when pressing enter of something like that. I would like to send a character array instead of single characters.