Serial.setTimeout()

Status
Not open for further replies.

Thread Starter

bhuvanesh

Joined Aug 10, 2013
268
Rich (BB code):
void setup()
{
  Serial.begin(9600);
}
void loop()
{char a[10];
if(Serial.setTimeout(1000)<1000)
{
  if(Serial.available())
  {
    int b=Serial.readBytes(a,10  );
    Serial.println(b);
  }
}}
is this way of using Serial.settimeout().if not please correct me
 

Georacer

Joined Nov 25, 2009
5,182
Breaking a problem to very small pieces doesn't really help. Resume the discussion over your whole project in this thread so that people can have a complete idea of what you are trying to do.

Do not create any more new threads on this project.
 
Status
Not open for further replies.
Top