Articles Posted in the " " Category

  • endWrite()

    endWrite()

    描述 停止传送资料到用户端。 语法 server.endWrite() 参数 无参数 回传 无回传值 See also - GSMServer - ready() - beginWrite() - write() - read() - 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 […]


  • beginWrite()

    beginWrite()

    描述 开始传送资料到用户端。 语法 server.beginWrite() 参数 无参数 回传 无回传值 See also - GSMServer - ready() - write() - endWrite() - read() - 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 […]


  • ready()

    ready()

    描述 取得被呼叫的最后一个 GSMServer 函式执行的状态。 语法 server.ready() 参数 无参数 回传 int:回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示执行成功,而回传大于 1 的值代表有错误发生 See also - GSMServer - beginWrite() - write() - endWrite() - read() - 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 […]


  • Server

    Server

    描述 Server 类别实作了 GPRS 伺服端的功能。 语法 GSMServer server(port); 参数 port:伺服端要使用的埠编号,型态为 int See also - ready() - beginWrite() - write() - endWrite() - read() - 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 […]


  • stop()

    stop()

    描述 中断与伺服端的连线。 语法 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()

    flush()

    描述 删除所有未读的资料。 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 […]


  • peek()

    peek()

    描述 回传未读资料中的第一个字元,回传后不把该字元认为是已读。由于没有把回传的字元认为是已读,所以如果没有呼叫 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()

    available()

    描述 回传目前与用户端连线的伺服端传送过来的资料量,这些资料都是目前可以读取的。 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()

    read()

    描述 读取伺服端传送的资料中第一个字元。 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 […]


  • connected()

    connected()

    描述 判断 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 […]