Skip to content

GSM3ShieldV1SMSProvider

詳細情報

メンバー

GSM3ShieldV1SMSProvider()

GSM3ShieldV1SMSProvider::GSM3ShieldV1SMSProvider()

manageResponse()

void GSM3ShieldV1SMSProvider::manageResponse(byte from, byte to)

引数

  • byte from Initial byte of buffer
  • byte to Final byte of buffer

beginSMS()

int GSM3ShieldV1SMSProvider::beginSMS(const char *to)

引数

  • constchar * to Destination

戻り値

int error command if it exists

writeSMS()

void GSM3ShieldV1SMSProvider::writeSMS(char c)

引数

  • char c Character

endSMS()

End SMS

int GSM3ShieldV1SMSProvider::endSMS()

戻り値

int error command if it exists

availableSMS()

Check if SMS available and prepare it to be read

int GSM3ShieldV1SMSProvider::availableSMS()

戻り値

int number of bytes in a received SMS

peekSMS()

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

int GSM3ShieldV1SMSProvider::peekSMS()

戻り値

int character

flushSMS()

Delete the SMS from Modem memory and proccess answer

void GSM3ShieldV1SMSProvider::flushSMS()

remoteSMSNumber()

int GSM3ShieldV1SMSProvider::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)

int GSM3ShieldV1SMSProvider::readSMS()

戻り値

int character

ready()

Get last command status

int GSM3ShieldV1SMSProvider::ready()

戻り値

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