Articles Posted in the " " Category

  • ready()

    ready()

    Description Gets the status of the last GSM SMS command. Syntax SMS.ready() Parameters none Returns int In asynchronous mode, ready() returns 0 if the last command is still executing, 1 if it was successful, and >1 if there is an error. In synchronous mode, it returns 1 if the previous successfully executed, and 0 if […]


  • endSMS()

    endSMS()

    Description Tells the modem that the SMS message is complete and sends it. Syntax SMS.endSMS() Parameters none Returns int In asynchronous mode, endSMS() returns 0 if it is still executing, 1 if successful, and >1 if there is an error. In synchronous mode, it returns 1 if the previous successfully executed, and 0 if it […]


  • available()

    available()

    Description Checks to see if there is a SMS messages on the SIM card to be read, and reports back the number of characters in the message. Syntax SMS.available() Parameters none Returns int : the number of characters in the message Example See also - GSM_SMS - beginSMS() - ready() - endSMS() - remoteNumber() - […]


  • remoteNumber()

    remoteNumber()

    Description Retrieves the phone number an from an incoming SMS message and stores it in a named array. Syntax SMS.remoteNumber(number, size) Parameters number : char array, a named array that will hold the sender’s number size : int, the size of the array Returns int In asynchronous mode, remoteNumber() returns 0 if the last command […]


  • read()

    read()

    Description Reads a byte from an SMS message. read() inherits from the Stream utility class. Syntax SMS.read() Parameters none Returns int – the first byte of incoming serial data available (or -1 if no data is available) Example See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - write() - […]


  • write()

    write()

    Description Writes a character to a SMS message. Syntax SMS.write(val) Parameters val: a character to send in the message Returns byte – write() will return the number of bytes written, though reading that number is optional Example See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - print() […]


  • print()

    print()

    Description Writes a char array as a SMS message. Syntax SMS.print(message) Parameters message: char array, the message to send Returns int : the number of bytes printed Example See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - peek() - flush() Libraries Reference Home The text […]


  • peek()

    peek()

    Description Returns the next byte (character) of an incoming SMS without removing it from the message. That is, successive calls to peek() will return the same character, as will the next call to read(). peek() inherits from the Stream utility class. Syntax SMS.peek() Parameters none Returns int – the first byte available of a SMS […]


  • flush()

    flush()

    Description flush() clears the modem memory of any sent messages once all outgoing characters have been sent. flush() inherits from the Stream utility class. Syntax SMS.flush() Parameters none Returns none Example See also - GSM_SMS - beginSMS() - ready() - endSMS() - available() - remoteNumber() - read() - write() - print() - peek() Libraries Reference […]


  • GSMVoiceCall constructor

    GSMVoiceCall constructor

    Description GSMVoiceCall is the base class for all GSM functions relating to receiving and making voice calls. See also - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - hangCall() - retrieveCallingNumber() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]