Skip to content

GSM3ShieldV1ModemCore

詳細情報

メンバー

gss

GSM3SoftSerial GSM3ShieldV1ModemCore::gss

GSM3ShieldV1ModemCore()

Constructor

GSM3ShieldV1ModemCore::GSM3ShieldV1ModemCore()

getPhoneNumber()

Get phone number

char* GSM3ShieldV1ModemCore::getPhoneNumber()

戻り値

char * phone number

setPhoneNumber()

void GSM3ShieldV1ModemCore::setPhoneNumber(char *n)

引数

  • char * n Phone number

getPort()

Get port used

int GSM3ShieldV1ModemCore::getPort()

戻り値

int port

setPort()

void GSM3ShieldV1ModemCore::setPort(int p)

引数

  • int p Port

getCommandError()

Get command error

uint8_t GSM3ShieldV1ModemCore::getCommandError()

戻り値

uint8_t command error

setCommandError()

void GSM3ShieldV1ModemCore::setCommandError(uint8_t n)

引数

  • uint8_t n Command error

getCommandCounter()

Get command counter

uint8_t GSM3ShieldV1ModemCore::getCommandCounter()

戻り値

uint8_t command counter

setCommandCounter()

void GSM3ShieldV1ModemCore::setCommandCounter(uint8_t c)

引数

  • uint8_t c Initial value

getOngoingCommand()

Get ongoing command

GSM3_commandType_e GSM3ShieldV1ModemCore::getOngoingCommand()

戻り値

GSM3_commandType_e command

setOngoingCommand()

void GSM3ShieldV1ModemCore::setOngoingCommand(GSM3_commandType_e c)

引数

  • GSM3_commandType_e c New ongoing command

openCommand()

void GSM3ShieldV1ModemCore::openCommand(GSM3ShieldV1BaseProvider *activeProvider, GSM3_commandType_e c)

引数

  • GSM3ShieldV1BaseProvider* activeProvider Active provider
  • GSM3_commandType_e c Command for open

closeCommand()

void GSM3ShieldV1ModemCore::closeCommand(int code)

引数

  • int code Close code

write()

size_t GSM3ShieldV1ModemCore::write(uint8_t c)

引数

  • uint8_t c Character

戻り値

size_t size

writePGM()

size_t GSM3ShieldV1ModemCore::writePGM(PGM_P str, bool CR=true)

引数

  • PGM_P str Buffer for write
  • bool CR Carriadge return adding automatically

戻り値

size_t size

setDebug()

void GSM3ShieldV1ModemCore::setDebug(bool db)

引数

  • bool db Boolean that indicates debug on or off

genericParse_rsp()

bool GSM3ShieldV1ModemCore::genericParse_rsp(bool &rsp, const char *string=0, const char *string2=0)

引数

  • bool& rsp Returns true if expected response exists
  • constchar * string Substring expected in response
  • constchar * string2 Second substring expected in response

戻り値

bool true if parsed correctly

genericCommand_rq()

void GSM3ShieldV1ModemCore::genericCommand_rq(PGM_P str, bool addCR=true)

引数

  • PGM_P str Buffer with AT command
  • bool addCR Carriadge return adding automatically

genericCommand_rqc()

void GSM3ShieldV1ModemCore::genericCommand_rqc(const char *str, bool addCR=true)

引数

  • constchar * str Buffer with AT command
  • bool addCR Carriadge return adding automatically

theBuffer()

Returns the circular buffer

GSM3CircularBuffer& GSM3ShieldV1ModemCore::theBuffer()

戻り値

GSM3CircularBuffer& circular buffer

setStatus()

void GSM3ShieldV1ModemCore::setStatus(GSM3_NetworkStatus_t status)

引数

  • GSM3_NetworkStatus_t status Network status

getStatus()

Returns actual network status

GSM3_NetworkStatus_t GSM3ShieldV1ModemCore::getStatus()

戻り値

GSM3_NetworkStatus_t network status

registerUMProvider()

void GSM3ShieldV1ModemCore::registerUMProvider(GSM3ShieldV1BaseProvider *provider)

引数

  • GSM3ShieldV1BaseProvider* provider Pointer to provider able to receive unsolicited messages

unRegisterUMProvider()

void GSM3ShieldV1ModemCore::unRegisterUMProvider(GSM3ShieldV1BaseProvider *provider)

引数

  • GSM3ShieldV1BaseProvider* provider Pointer to provider able to receive unsolicited messages

registerActiveProvider()

void GSM3ShieldV1ModemCore::registerActiveProvider(GSM3ShieldV1BaseProvider *provider)

引数

  • GSM3ShieldV1BaseProvider* provider Pointer to provider receiving responses

manageMsg()

void GSM3ShieldV1ModemCore::manageMsg(byte from, byte to)

引数

  • byte from Starting byte to read
  • byte to Last byte to read

manageReceivedData()

If _debugging, this call is assumed to be made out of interrupts Prints incoming info and calls manageMsgNow

void GSM3ShieldV1ModemCore::manageReceivedData()

takeMilliseconds()

Chronometer. Measure milliseconds from last call

unsigned long GSM3ShieldV1ModemCore::takeMilliseconds()

戻り値

unsigned long milliseconds from las time function was called

delayInsideInterrupt()

void GSM3ShieldV1ModemCore::delayInsideInterrupt(unsigned long milliseconds)

引数

  • unsigned long milliseconds Delay time in milliseconds