Skip to content

GSM3MobileSMSProvider

詳細情報

メンバー

beginSMS()

virtual int GSM3MobileSMSProvider::beginSMS(const char *to)

引数

  • constchar * to Destination

戻り値

int error command if it exists

writeSMS()

virtual void GSM3MobileSMSProvider::writeSMS(const char c)

引数

  • constchar c Character

endSMS()

End SMS

virtual int GSM3MobileSMSProvider::endSMS()

戻り値

int error command if it exists

availableSMS()

Check if SMS available and prepare it to be read

virtual int GSM3MobileSMSProvider::availableSMS()

戻り値

int number of bytes in a received SMS

peekSMS()

Read a byte but do not advance the buffer header (circular buffer)

virtual int GSM3MobileSMSProvider::peekSMS()

戻り値

int character

flushSMS()

Delete the SMS from Modem memory and proccess answer

virtual void GSM3MobileSMSProvider::flushSMS()

remoteSMSNumber()

virtual int GSM3MobileSMSProvider::remoteSMSNumber(char *number, int nlength)

引数

  • char * number Buffer for save number phone
  • int nlength Buffer length

戻り値

int 1 success, >1 error

readSMS()

Read one char for SMS buffer (advance circular buffer)

virtual int GSM3MobileSMSProvider::readSMS()

戻り値

int character

ready()

Get last command status

virtual int GSM3MobileSMSProvider::ready()=0

戻り値

int returns 0 if last command is still executing, 1 success, >1 error