说明
当我们使用ESP8266开发板或者Arduino开发板来开发项目时,可以使用基于Stream类的库来处理Stream数据。以下列表中的库都是基于Stream类所建立的。
库 | 类 |
Serial | Serial |
SoftwareSerial | SoftwareSerial |
Ehternet | EthernetClient |
ESP8266FS | File |
SD | File |
Wire | Wire |
GSM | GSMClient |
WifiClient | WiFiClient |
WiFiServer | WiFiServer |
WiFiUDP | WiFiUDP |
WiFiClientSecure | WiFiClientSecure |
函数
– available
– read
– readBytes
– readBytesUntil
– readString
– readStringUntil
– find
– findUntil
– peek
– flush
– parseInt
– parseFloat
– setTimeout
– 清除接收缓存