Go Down

Topic: help in stream function (Read 384 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