Pages: [1]   Go Down
Author Topic: Waiting on Serial.Begin  (Read 466 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello.  Does anyone know if it is possible to not "hang" waiting on serial.begin. 

I would like to occasionally check if there is a serial connection present if not, continue on through the the loop.  Right now, I have the Serial.Begin inside of the Setup routine and the code just waits until there is a serial connection made.

Thank you.

Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I have the Serial.Begin inside of the Setup routine and the code just waits until there is a serial connection made

Impossible.  There are no loops in Serial.begin.

If you'd like help, post your Sketch.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24322
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

All "Serial.begin" does is set up the baud rate generator - it has no concept of a "connection".
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: