Articles Posted in the " " Category

  • ready()

    ready()

    描述 取得被呼叫的最后一个 GSM_SMS 函式执行的状态。 语法 SMS.ready() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示执行成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示执行成功,回传 0 表示执行失败 See also - GSM_SMS - beginSMS() - endSMS() - available() - remoteNumber() - read() - write() - print() - peek() - flush() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino […]






  • write()

    write()

    描述 写资料进简讯。 语法 SMS.write(val) 参数 val:要写入简讯的字元 回传 byte:回传成功写入简讯裡的字元数量 范例 See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - 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. […]


  • print()

    print()

    描述 把字元阵列裡的资料写入简讯。 语法 SMS.print(message) 参数 message:存放资料的字元阵列 回传 int:写入简讯的字元数 范例 See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - 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. […]


  • peek()

    peek()

    描述 回传未读简讯资料中的第一个字元,回传后不把该字元认为是已读。由于没有把回传的字元认为是已读,所以如果没有呼叫 read() 每次呼叫 peek() 都会得到同一个字元。 peek() 是从 Stream 继承而来。 语法 SMS.peek() 参数 无参数 回传 int:回传未读的简讯内容中最前面的字元,如果没有简讯内容可以读回传 -1 范例 See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - print() - flush() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and […]


  • flush()

    flush()

    描述 删除所有未读的简讯内容。 flush() 是从 Stream 继承而来。 语法 SMS.flush() 参数 无参数 回传 无回传值 范例 See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - print() - peek() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative […]


  • GSMVoiceCall constructor

    GSMVoiceCall constructor

    描述 GSMVoiceCall 类别实作了播打/接听电话的相关功能。 See also - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - hangCall() - retrieveCallingNumber() 函式库参考主页面 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.