Skip to content

GSM3MobileNetworkProvider

詳細情報

メンバー

minSocketAsServer()

minSocketAsServer

virtual int GSM3MobileNetworkProvider::minSocketAsServer()

戻り値

int 0

maxSocketAsServer()

maxSocketAsServer

virtual int GSM3MobileNetworkProvider::maxSocketAsServer()

戻り値

int 0

ready()

Get last command status

virtual int GSM3MobileNetworkProvider::ready()=0

戻り値

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

GSM3MobileNetworkProvider()

Constructor

GSM3MobileNetworkProvider::GSM3MobileNetworkProvider()

getStatus()

Get network status

virtual GSM3_NetworkStatus_t GSM3MobileNetworkProvider::getStatus()

戻り値

GSM3_NetworkStatus_t network status

getStatusSocketClient()

bool GSM3MobileNetworkProvider::getStatusSocketClient(uint8_t socket)

引数

  • uint8_t socket Socket

戻り値

bool 1 if connected, 0 otherwise

closeCommand()

virtual void GSM3MobileNetworkProvider::closeCommand(int code)

引数

  • int code Close code

connectTCPServer()

virtual int GSM3MobileNetworkProvider::connectTCPServer(int port, char *localIP, int localIPlength)

引数

  • int port Port
  • char * localIP IP address
  • int localIPlength IP address size in characters

戻り値

int command error if exists

getIP()

virtual int GSM3MobileNetworkProvider::getIP(char *LocalIP, int LocalIPlength)

引数

  • char * LocalIP Buffer for save IP address
  • int LocalIPlength Buffer size

戻り値

int

getNewOccupiedSocketAsServer()

Get new occupied socket

int GSM3MobileNetworkProvider::getNewOccupiedSocketAsServer()

戻り値

int -1 if no new socket has been occupied

getStatusSocketAsServer()

bool GSM3MobileNetworkProvider::getStatusSocketAsServer(uint8_t socket)

引数

  • uint8_t socket Socket to get status

戻り値

bool socket status

disconnectTCP()

int GSM3MobileNetworkProvider::disconnectTCP(bool client1Server0, int idsocket)

引数

  • bool client1Server0 1 if modem acts as client, 0 if acts as server
  • int idsocket

戻り値

int 0 if command running, 1 if success, otherwise error

releaseSocket()

void GSM3MobileNetworkProvider::releaseSocket(int socket)

引数

  • int socket Socket