Pages: [1]   Go Down
Author Topic: help in stream function  (Read 367 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
void setup()
{
  Serial.begin(9600);
}

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


Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: