描述 停止传送资料到伺服端。 语法 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 […]
描述 取得被呼叫的最后一个 GSMClient 函式执行的状态。 语法 client.ready() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示执行成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示执行成功,回传 0 表示执行失败 See also - GSMClient - connect() - beginWrite() - write() - endWrite() - connected() - read() - available() - peek() - flush() - stop() 函式库参考主页面 The text of the 86Duino reference is a modification of […]
描述 Client 类别实作了 GPRS 客户端的功能。 See also - ready() - connect() - beginWrite() - 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 License. Code samples […]
描述 GPRS 类别实作连线网路的功能。 See also - attachGPRS() 函式库参考主页面 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.
描述 连线到指定的接入点(Access Point Name, APN)并初始化 GPRS 连线。 电信提供商会给使用者接入点并且扮演 GPRS 网路和网际网路间的桥樑。有些接入点并不需要使用者名称和密码。 这个网页列出了一些电信提供商的接入点资讯,但可能有一段时间没有更新了。 语法 grps.attachGPRS(APN, user, password) 参数 APN:存放电信提供商网路接入点的字元阵列 user:存放接入点使用者名称的字元阵列 password:存放接入点密码的字元阵列 回传 char array:ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED 范例 See also - GPRS 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 […]
描述 GSM_SMS 类别实现了发送/接收简讯的相关功能 See also - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - print() - peek() - flush() 函式库参考主页面 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 […]
描述 初始化简讯并且指定简讯要送至的电话号码。要使用 write() 写入简讯内容前必须先呼叫 beginSMS()。 语法 SMS.beginSMS(number) 参数 number:用来存放简讯发送目的地的字元阵列 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示简讯初始化成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示简讯初始化成功,回传 0 表示简讯初始化失败 范例 See also - GSM_SMS - ready() - endSMS() - available() - remoteNumber() - read() - write() - print() - peek() - flush() 函式库参考主页面 The text of the 86Duino reference is a modification of […]