wifiesp 2.0.0.0
Public function

Functions

void wifiesp_cfg_setup (wifiesp_cfg_t *cfg)
 Config Object Initialization function.
 
err_t wifiesp_init (wifiesp_t *ctx, wifiesp_cfg_t *cfg)
 Initialization function.
 
void wifiesp_default_cfg (wifiesp_t *ctx)
 Click Default Configuration function.
 
void wifiesp_generic_write (wifiesp_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t wifiesp_generic_read (wifiesp_t *ctx, char *data_buf, int32_t max_len)
 Generic read function.
 
void wifiesp_send_cmd (wifiesp_t *ctx, uint8_t *cmd, uint8_t *args)
 Sends AT command to the module.
 

Detailed Description

Function Documentation

◆ wifiesp_cfg_setup()

void wifiesp_cfg_setup ( wifiesp_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ wifiesp_default_cfg()

void wifiesp_default_cfg ( wifiesp_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

This function executes default configuration for wifiesp click.

◆ wifiesp_generic_read()

int32_t wifiesp_generic_read ( wifiesp_t * ctx,
char * data_buf,
int32_t max_len )

Generic read function.

Parameters
ctxClick object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ wifiesp_generic_write()

void wifiesp_generic_write ( wifiesp_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

Parameters
ctxClick object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ wifiesp_init()

err_t wifiesp_init ( wifiesp_t * ctx,
wifiesp_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

This function initializes all necessary pins and peripherals used for this click.

◆ wifiesp_send_cmd()

void wifiesp_send_cmd ( wifiesp_t * ctx,
uint8_t * cmd,
uint8_t * args )

Sends AT command to the module.

Parameters
ctxClick object.
cmdAT command
argsAT command arguments string pointer (NULL if no arguments).

This function sends AT command to wifiesp click.