Skip to content

GSM3ShieldV1MultiClientProvider

詳細情報

メンバー

GSM3ShieldV1MultiClientProvider()

Constructor

GSM3ShieldV1MultiClientProvider::GSM3ShieldV1MultiClientProvider()

minSocket()

Minimum socket

int GSM3ShieldV1MultiClientProvider::minSocket()

戻り値

int 0

maxSocket()

Maximum socket

int GSM3ShieldV1MultiClientProvider::maxSocket()

戻り値

int 5

connectTCPClient()

int GSM3ShieldV1MultiClientProvider::connectTCPClient(const char *server, int port, int id_socket)

引数

  • constchar * server String with IP or server name
  • int port Remote port number
  • int id_socket Local socket number

戻り値

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

connectTCPClient()

int GSM3ShieldV1MultiClientProvider::connectTCPClient(IPAddress add, int port, int id_socket)

引数

  • IPAddress add Remote IP address
  • int port Remote port number
  • int id_socket Local socket number

戻り値

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

beginWriteSocket()

void GSM3ShieldV1MultiClientProvider::beginWriteSocket(bool client1Server0, int id_socket)

引数

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

writeSocket()

void GSM3ShieldV1MultiClientProvider::writeSocket(const char *buf)

引数

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

writeSocket()

void GSM3ShieldV1MultiClientProvider::writeSocket(char c)

引数

  • char c character to be written

endWriteSocket()

Finish current writing

void GSM3ShieldV1MultiClientProvider::endWriteSocket()

availableSocket()

int GSM3ShieldV1MultiClientProvider::availableSocket(bool client, int id_socket)

引数

  • 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 a character from socket

int GSM3ShieldV1MultiClientProvider::readSocket()

戻り値

int socket

flushSocket()

Flush socket

void GSM3ShieldV1MultiClientProvider::flushSocket()

peekSocket()

Get a character but will not advance the buffer head

int GSM3ShieldV1MultiClientProvider::peekSocket()

戻り値

int character

disconnectTCP()

int GSM3ShieldV1MultiClientProvider::disconnectTCP(bool client1Server0, int id_socket)

引数

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

戻り値

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

recognizeUnsolicitedEvent()

bool GSM3ShieldV1MultiClientProvider::recognizeUnsolicitedEvent(byte from)

引数

  • byte from

戻り値

bool true if successful

manageResponse()

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

引数

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

ready()

Get last command status

int GSM3ShieldV1MultiClientProvider::ready()

戻り値

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

getSocket()

int GSM3ShieldV1MultiClientProvider::getSocket(int socket=-1)

引数

  • int socket

戻り値

int socket

releaseSocket()

void GSM3ShieldV1MultiClientProvider::releaseSocket(int socket)

引数

  • int socket Socket for release

getStatusSocketClient()

bool GSM3ShieldV1MultiClientProvider::getStatusSocketClient(uint8_t socket)

引数

  • uint8_t socket Socket

戻り値

bool socket client status