Skip to content

GSM3MobileClientService

詳細情報

メンバー

GSM3MobileClientService()

GSM3MobileClientService::GSM3MobileClientService(bool synch=true)

引数

  • bool synch Sync mode

GSM3MobileClientService()

GSM3MobileClientService::GSM3MobileClientService(int socket, bool synch)

引数

  • int socket Socket
  • bool synch Sync mode

ready()

Get last command status

int GSM3MobileClientService::ready()

戻り値

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

connect()

int GSM3MobileClientService::connect(IPAddress, uint16_t)

引数

  • uint16_t ``

戻り値

int returns 0 if last command is still executing, 1 success, 2 if there are no resources

connect()

int GSM3MobileClientService::connect(const char *host, uint16_t port)

引数

  • constchar * host Hostname
  • uint16_t port Port

戻り値

int returns 0 if last command is still executing, 1 success, 2 if there are no resources

beginWrite()

void GSM3MobileClientService::beginWrite(bool sync=false)

引数

  • bool sync Sync mode

write()

size_t GSM3MobileClientService::write(uint8_t c)

引数

  • uint8_t c Character

戻り値

size_t size

write()

size_t GSM3MobileClientService::write(const uint8_t *buf)

引数

  • constuint8_t * buf Buffer

戻り値

size_t buffer size

write()

size_t GSM3MobileClientService::write(const uint8_t *, size_t)

引数

  • size_t ``

戻り値

size_t buffer size

endWrite()

void GSM3MobileClientService::endWrite(bool sync=false)

引数

  • bool sync Sync mode

connected()

Check if connected to server

uint8_t GSM3MobileClientService::connected()

戻り値

uint8_t 1 if connected

operator bool()

GSM3MobileClientService::operator bool()

read()

int GSM3MobileClientService::read(uint8_t *buf, size_t size)

引数

  • uint8_t * buf Buffer
  • size_t size Buffer size

戻り値

int bytes read

read()

Read a character from response buffer

int GSM3MobileClientService::read()

戻り値

int character

available()

Check if exists a response available

int GSM3MobileClientService::available()

戻り値

int 1 if exists, 0 if not exists

peek()

Read a character from response buffer but does not move the pointer.

int GSM3MobileClientService::peek()

戻り値

int character

flush()

Flush response buffer

void GSM3MobileClientService::flush()

stop()

Stop client

void GSM3MobileClientService::stop()

getSocket()

Get socket

int GSM3MobileClientService::getSocket()

戻り値

int socket