Go Down

Topic: help in stream function (Read 401 times) previous topic - next topic

ambuj

hi all,
        when i try this function this function gives me compile time error
   "error: 'stream' was not declared in this scope"
every time give me the same error can any one help me
Code: [Select]
void setup()
{
  Serial.begin(9600);
}

void loop()
{
  stream.available();
}




dxw00d

What are you trying to do? You should be using Serial.available(), although just using it as a statement is a bit pointless.

Quote
Stream is the base class for character and binary based streams. It is not called directly, but invoked whenever you use a function that relies on it.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy