0 votes
16 views
in Arduino by
For auto configuration of attached modules, ie ESP, GPS etc etc... I'm looking for changing the Baud at runtime to see which one is correct.

Can this be done?

1 Answer

0 votes
by
Serial.begin(9600);
while(Serial.available()) Serial.read();

// Do some ping-pong and check if something is coming along.
// If not change the Baud and try again

Serial.flush();
Serial.begin(115200);
while(Serial.available()) Serial.read();

Related questions

0 votes
1 answer 8 views
asked Sep 19 in Arduino by Samurai
+1 vote
2 answers 6.3k views
0 votes
1 answer 1.7k views
0 votes
1 answer 16 views
+2 votes
1 answer 8.7k views
asked Mar 15, 2017 in Arduino by Manoj
0 votes
1 answer 2.4k views
...