read()

描述

讀取用戶端傳送的資料中第一個字元。

read() 是從 Stream 繼承而來。

語法


server.read()

參數

無參數

回傳

int:回傳待讀資料中的第一個字元,如果沒有資料可以讀取回傳 -1

See also

GSMServer
ready()
beginWrite()
write()
endWrite()
available()
stop()


函式庫參考主頁面

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.