wifi11 2.0.0.0
|
Functions | |
void | wifi11_cfg_setup (wifi11_cfg_t *cfg) |
Config Object Initialization function. | |
WIFI11_RETVAL | wifi11_init (wifi11_t *ctx, wifi11_cfg_t *cfg) |
Initialization function. | |
void | wifi11_generic_write (wifi11_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | wifi11_generic_read (wifi11_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | wifi11_reset_device (wifi11_t *ctx) |
Device reset function. | |
void | wifi11_send_cmd (wifi11_t *ctx, char *cmd) |
Send command function. | |
void | wifi11_send_cmd_with_parameter (wifi11_t *ctx, char *at_cmd_buf, char *param_buf) |
Send command function with parameter. | |
void | wifi11_connect_to_ap (wifi11_t *ctx, char *ssid, char *password) |
Connect to AP function. | |
void | wifi11_create_tcp_udp_server (wifi11_t *ctx, uint8_t mode, uint16_t port) |
Create TCP/UDP server function. | |
void wifi11_cfg_setup | ( | wifi11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void wifi11_connect_to_ap | ( | wifi11_t * | ctx, |
char * | ssid, | ||
char * | password ) |
Connect to AP function.
This function connects to the desired AP.
[in] | ctx | : Click context object. See wifi11_t object definition for detailed explanation. |
[in] | ssid | SSID of AP. |
[in] | password | AP password ( NULL - if the AP is OPEN ). |
void wifi11_create_tcp_udp_server | ( | wifi11_t * | ctx, |
uint8_t | mode, | ||
uint16_t | port ) |
Create TCP/UDP server function.
This function creates TCP/UDP server on the desired port.
[in] | ctx | : Click context object. See wifi11_t object definition for detailed explanation. |
[in] | mode | TCP - 0, UDP - 1. |
[in] | port | Local port: 1-65535. |
int32_t wifi11_generic_read | ( | wifi11_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
This function reads the specified number of data bytes.
[in] | ctx | Click object. See wifi11_t object definition for detailed explanation. |
[out] | data_buf | Data buffer for read data. |
[in] | max_len | The maximum length of data that can be read. |
void wifi11_generic_write | ( | wifi11_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
This function writes the specified number of data bytes.
[in] | ctx | Click object. See wifi11_t object definition for detailed explanation. |
[in] | data_buf | Data buffer for sends. |
[in] | len | Number of bytes for sends. |
WIFI11_RETVAL wifi11_init | ( | wifi11_t * | ctx, |
wifi11_cfg_t * | cfg ) |
Initialization function.
[in] | ctx | Click object. See wifi11_t object definition for detailed explanation. |
[in] | cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void wifi11_reset_device | ( | wifi11_t * | ctx | ) |
Device reset function.
This function resets the device.
ctx | Click object. See wifi11_t object definition for detailed explanation. |
void wifi11_send_cmd | ( | wifi11_t * | ctx, |
char * | cmd ) |
Send command function.
This function sends the specified command to the click module.
[in] | ctx | : Click context object. See wifi11_t object definition for detailed explanation. |
[in] | cmd | Command variable. |
void wifi11_send_cmd_with_parameter | ( | wifi11_t * | ctx, |
char * | at_cmd_buf, | ||
char * | param_buf ) |
Send command function with parameter.
This function sends commands to the click module.
[in] | ctx | : Click context object. See wifi11_t object definition for detailed explanation. |
[in] | at_cmd_buf | Command buffer. |
[in] | param_buf | Parameter buffer. |