Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
tcp_client.ino File Reference
#include <ELClient.h>
#include <ELClientSocket.h>
#include <SC16IS750.h>

Go to the source code of this file.

Functions

char * getErrTxt (int16_t commError)
 
void tcpCb (uint8_t resp_type, uint8_t client_num, uint16_t len, char *data)
 
void wifiCb (void *response)
 
void setup ()
 
void loop ()
 

Variables

char *const tcpServer PROGMEM = "192.168.0.102"
 
SC16IS750 i2cuart = SC16IS750(SC16IS750_PROTOCOL_I2C,SC16IS750_ADDRESS_AA)
 
ELClientSocket tcp & esp
 
int tcpConnNum
 
uint32_t wait
 
uint32_t waitTime
 
boolean wifiConnected = false
 

Function Documentation

◆ getErrTxt()

char * getErrTxt ( int16_t  commError)

Definition at line 68 of file tcp_client.ino.

Here is the caller graph for this function:

◆ loop()

void loop ( )

Definition at line 170 of file tcp_client.ino.

◆ setup()

void setup ( )

Definition at line 125 of file tcp_client.ino.

Here is the call graph for this function:

◆ tcpCb()

void tcpCb ( uint8_t  resp_type,
uint8_t  client_num,
uint16_t  len,
char *  data 
)

Definition at line 79 of file tcp_client.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wifiCb()

void wifiCb ( void *  response)

Definition at line 108 of file tcp_client.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ esp

ELClientSocket tcp& esp

Definition at line 36 of file tcp_client.ino.

◆ i2cuart

ELClient esp & i2cuart = SC16IS750(SC16IS750_PROTOCOL_I2C,SC16IS750_ADDRESS_AA)

Definition at line 22 of file tcp_client.ino.

◆ PROGMEM

uint16_t const udpPort2 PROGMEM = "192.168.0.102"

Simple example to demo the El-Client TCP client This example sends out a message to a TCP socket server and doesn't wait for a response from the server

Definition at line 12 of file tcp_client.ino.

◆ tcpConnNum

int tcpConnNum

Definition at line 38 of file tcp_client.ino.

◆ wait

uint32_t wait

Definition at line 41 of file tcp_client.ino.

◆ waitTime

uint32_t waitTime

Definition at line 43 of file tcp_client.ino.

◆ wifiConnected

boolean wifiConnected = false

Definition at line 45 of file tcp_client.ino.