Skip to content

GSM3SMSService

詳細情報

メンバー

GSM3SMSService()

GSM3SMSService::GSM3SMSService(bool synch=true)

引数

  • bool synch Determines sync mode

write()

size_t GSM3SMSService::write(uint8_t c)

引数

  • uint8_t c Character

戻り値

size_t size

beginSMS()

int GSM3SMSService::beginSMS(const char *to)

引数

  • constchar * to Destination

戻り値

int error command if it exists

ready()

Get last command status

int GSM3SMSService::ready()

戻り値

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

endSMS()

End SMS

int GSM3SMSService::endSMS()

戻り値

int error command if it exists

available()

Check if SMS available and prepare it to be read

int GSM3SMSService::available()

戻り値

int number of bytes in a received SMS

remoteNumber()

int GSM3SMSService::remoteNumber(char *number, int nlength)

引数

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

戻り値

int 1 success, >1 error

read()

Read one char for SMS buffer (advance circular buffer)

int GSM3SMSService::read()

戻り値

int byte

peek()

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

int GSM3SMSService::peek()

戻り値

int byte

flush()

Delete the SMS from Modem memory and proccess answer

void GSM3SMSService::flush()