Skip to content

GSM3ShieldV1VoiceProvider

詳細情報

メンバー

GSM3ShieldV1VoiceProvider()

Constructor

GSM3ShieldV1VoiceProvider::GSM3ShieldV1VoiceProvider()

initialize()

initilizer, links with modem provider

void GSM3ShieldV1VoiceProvider::initialize()

manageResponse()

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

引数

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

voiceCall()

int GSM3ShieldV1VoiceProvider::voiceCall(const char *number)

引数

  • constchar * number Phone number to be called

戻り値

int If asynchronous, returns 0. If synchronous, 1 if success, other if error

answerCall()

Answer a voice call

int GSM3ShieldV1VoiceProvider::answerCall()

戻り値

int If asynchronous, returns 0. If synchronous, 1 if success, other if error

hangCall()

Hang a voice call

int GSM3ShieldV1VoiceProvider::hangCall()

戻り値

int If asynchronous, returns 0. If synchronous, 1 if success, other if error

retrieveCallingNumber()

int GSM3ShieldV1VoiceProvider::retrieveCallingNumber(char *buffer, int bufsize)

引数

  • char * buffer Buffer for copy phone number
  • int bufsize Buffer size

戻り値

int If asynchronous, returns 0. If synchronous, 1 if success, other if error

ready()

Get last command status

int GSM3ShieldV1VoiceProvider::ready()

戻り値

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

recognizeUnsolicitedEvent()

bool GSM3ShieldV1VoiceProvider::recognizeUnsolicitedEvent(byte oldTail)

引数

  • byte oldTail

戻り値

bool true if successful

getvoiceCallStatus()

Returns voice call status

GSM3_voiceCall_st GSM3ShieldV1VoiceProvider::getvoiceCallStatus()

戻り値

GSM3_voiceCall_st voice call status

setvoiceCallStatus()

void GSM3ShieldV1VoiceProvider::setvoiceCallStatus(GSM3_voiceCall_st status)

引数

  • GSM3_voiceCall_st status New status for voice call