flush()

描述

送出緩衝區內尚未傳送的資料,並等待其完成。

flush() 是繼承於 Stream 類別。

語法

適用所有板子:

Serial.flush()
Serial1.flush()

適用 86Duino ONE:

Serial2.flush()
Serial3.flush()
Serial485.flush()

適用 86Duino EduCake:

Serial2.flush()
Serial3.flush()
Serial232.flush()

參數

回傳

無回傳值

See also

Serial
available()
begin()
end()
find()
findUntil()
parseFloat()
parseInt()
peek()
print()
println()
read()
readBytes()
readBytesUntil()
setTimeout()
write()
serialEvent()


語法參考主頁面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.