source:
rtos_arduino/trunk/arduino_lib/libraries/pubsubclient-2.6/tests/src/lib/Stream.h@
209
Last change on this file since 209 was 209, checked in by , 8 years ago | |
---|---|
File size: 350 bytes |
Rev | Line | |
---|---|---|
[209] | 1 | #ifndef Stream_h |
2 | #define Stream_h | |
3 | ||
4 | #include "Arduino.h" | |
5 | #include "Buffer.h" | |
6 | ||
7 | class Stream { | |
8 | private: | |
9 | Buffer* expectBuffer; | |
10 | bool _error; | |
11 | uint16_t _written; | |
12 | ||
13 | public: | |
14 | Stream(); | |
15 | virtual size_t write(uint8_t); | |
16 | ||
17 | virtual bool error(); | |
18 | virtual void expect(uint8_t *buf, size_t size); | |
19 | virtual uint16_t length(); | |
20 | }; | |
21 | ||
22 | #endif |
Note:
See TracBrowser
for help on using the repository browser.