Skip to content

GSM3MobileClientProvider

詳細情報

メンバー

GSM3MobileClientProvider()

Constructor

GSM3MobileClientProvider::GSM3MobileClientProvider()

minSocket()

Minimum socket

virtual int GSM3MobileClientProvider::minSocket()=0

戻り値

int socket

maxSocket()

Maximum socket

virtual int GSM3MobileClientProvider::maxSocket()=0

戻り値

int socket

ready()

Get last command status

virtual int GSM3MobileClientProvider::ready()=0

戻り値

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

getStatusSocketClient()

virtual bool GSM3MobileClientProvider::getStatusSocketClient(uint8_t socket)=0

引数

  • uint8_t socket Socket

戻り値

bool 1 if connected

getSocket()

virtual int GSM3MobileClientProvider::getSocket(int socket=-1)=0

引数

  • int socket Socket

戻り値

int socket

releaseSocket()

virtual void GSM3MobileClientProvider::releaseSocket(int socket)=0

引数

  • int socket Socket

connectTCPClient()

virtual int GSM3MobileClientProvider::connectTCPClient(const char *server, int port, int id_socket)=0

引数

  • constchar * server name or IP address in a String
  • int port Port
  • int id_socket Socket

戻り値

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

connectTCPClient()

virtual int GSM3MobileClientProvider::connectTCPClient(IPAddress add, int port, int id_socket)=0

引数

  • IPAddress add IP address in format
  • int port Port
  • int id_socket Socket

戻り値

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

beginWriteSocket()

virtual void GSM3MobileClientProvider::beginWriteSocket(bool client1Server0, int id_socket)=0

引数

  • bool client1Server0 1 if modem acts as client, 0 if acts as server
  • int id_socket Local socket number

writeSocket()

virtual void GSM3MobileClientProvider::writeSocket(uint8_t c)=0

引数

  • uint8_t c character to be written

writeSocket()

virtual void GSM3MobileClientProvider::writeSocket(const char *buf)=0

引数

  • constchar * buf characters to be written (final 0 will not be written)

endWriteSocket()

Finish current writing

virtual void GSM3MobileClientProvider::endWriteSocket()=0

availableSocket()

virtual int GSM3MobileClientProvider::availableSocket(bool client, int id_socket)=0

引数

  • bool client
  • int id_socket Local socket number

戻り値

int 0 if command running, 1 if there are data available, 4 if no data, otherwise error

readSocket()

Read data (get a character) available in socket

virtual int GSM3MobileClientProvider::readSocket()=0

戻り値

int character

flushSocket()

Flush socket

virtual void GSM3MobileClientProvider::flushSocket()=0

peekSocket()

Get a character but will not advance the buffer head

virtual int GSM3MobileClientProvider::peekSocket()=0

戻り値

int character

disconnectTCP()

virtual int GSM3MobileClientProvider::disconnectTCP(bool client1Server0, int idsocket)=0

引数

  • 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