描述 中断与伺服端的连线。 语法 client.stop() 参数 无参数 回传 无回传值 范例 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - flush() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]
描述 删除所有未读的资料。 flush() 是从 Stream 继承而来。 语法 client.flush() 参数 无参数 回传 无回传值 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a […]
描述 回传未读资料中的第一个字元,回传后不把该字元认为是已读。由于没有把回传的字元认为是已读,所以如果没有呼叫 read() 每次呼叫 peek() 都会得到同一个字元。 peek() 是从 Stream 继承而来。 语法 client.peek() 参数 无参数 回传 int:回传待读资料中的第一个字元,如果没有资料可以读取回传 -1 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, […]
描述 回传目前与用户端连线的伺服端传送过来的资料量,这些资料都是目前可以读取的。 available() 是从 Stream 继承而来。 语法 client.available() 参数 无参数 回传 无回传值 范例 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - read() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under […]
描述 读取伺服端传送的资料中第一个字元。 read() 是从 Stream 继承而来。 语法 client.read() 参数 无参数 回传 int:回传待读资料中的第一个字元,如果没有资料可以读取回传 -1 范例 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - connected() - available() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed […]
描述 判断 Client 物件是否连线中。如果用户端与伺服端的连线已经中断了,但是 Client 物件中仍然有从伺服端传送的资料而未被读取的话,该 Client 物件仍被视为连线中。 语法 client.connected() 参数 无参数 回传 boolean:如果该 Client 物件连线中回传 true,反之回传 false 范例 See also - GSMClient - ready() - connect() - beginWrite() - write() - endWrite() - read() - available() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of the […]
描述 停止传送资料到伺服端。 语法 client.endWrite() 参数 无参数 回传 无回传值 See also - GSMClient - ready() - connect() - beginWrite() - write() - connected() - read() - available() - peek() - flush() - 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 […]
描述 传送资料到伺服端。 语法 client.write(data) client.write(buffer) client.write(buffer, size) 参数 data:要传送的资料,型态为 byte 或 char buffer:存放资料的字元阵列,型态为 byte 或 char size:字元阵列(buffer)的大小,型态为 byte 回传 byte:回传成功传送的字元数 See also - GSMClient - ready() - connect() - beginWrite() - endWrite() - connected() - read() - available() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of […]
描述 开始传送资料到伺服端。 语法 client.beginWrite() 参数 无参数 回传 无回传值 See also - GSMClient - ready() - connect() - write() - endWrite() - connected() - read() - available() - peek() - flush() - 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 […]
描述 连接到指定的 IP 位址与埠(port)。 语法 client.connect(ip, port) 参数 ip:存放伺服端 IP 位址的字元阵列,阵列大小为 4 位元组 port:伺服端的埠编号,型态为 int 回传 boolean:如果连线成功回传 true,反之回传 false 范例 See also - GSMClient - ready() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of […]