Skip to content

GSM3ShieldV1DataNetworkProvider

詳細情報

メンバー

networkAttach()

GSM3_NetworkStatus_t GSM3ShieldV1DataNetworkProvider::networkAttach(char *networkId, char *user, char *pass)

引数

  • char * networkId APN GPRS
  • char * user Username
  • char * pass Password

戻り値

GSM3_NetworkStatus_t connection status

networkDetach()

Detach GPRS/GSM network

GSM3_NetworkStatus_t GSM3ShieldV1DataNetworkProvider::networkDetach()

戻り値

GSM3_NetworkStatus_t connection status

attachGPRS()

GSM3_NetworkStatus_t GSM3ShieldV1DataNetworkProvider::attachGPRS(char *apn, char *user_name, char *password, bool synchronous=true)

引数

  • char * apn APN GPRS
  • char * user_name Username
  • char * password Password
  • bool synchronous Sync mode

戻り値

GSM3_NetworkStatus_t connection status

detachGPRS()

GSM3_NetworkStatus_t GSM3ShieldV1DataNetworkProvider::detachGPRS(bool synchronous=true)

引数

  • bool synchronous Sync mode

戻り値

GSM3_NetworkStatus_t connection status

ready()

Returns 0 if last command is still executing

int GSM3ShieldV1DataNetworkProvider::ready()

戻り値

int 1 if success, >1 if error

getStatus()

Get network status (connection)

GSM3_NetworkStatus_t GSM3ShieldV1DataNetworkProvider::getStatus()

戻り値

GSM3_NetworkStatus_t status

getIP()

int GSM3ShieldV1DataNetworkProvider::getIP(char *LocalIP, int LocalIPlength)

引数

  • char * LocalIP Buffer for copy IP address
  • int LocalIPlength Buffer length

戻り値

int command error if exists

getIPAddress()

Get actual assigned IP address in format

IPAddress GSM3ShieldV1DataNetworkProvider::getIPAddress()

戻り値

IPAddress IP address in format

manageResponse()

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

引数

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