wifi11
2.0.0.0
|
WiFi 11 Click is a compact add-on board that contains a WiFi and Bluetooth module that has dual bands for WiFi communication. This board features the BW16, a low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Ai-Thinker.
We provide a library for the Wifi11 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Wifi11 Click driver.
void wifi11_cfg_setup ( wifi11_cfg_t *cfg );
WIFI11_RETVAL wifi11_init ( wifi11_t *ctx, wifi11_cfg_t *cfg );
void wifi11_reset_device ( wifi11_t *ctx );
void wifi11_send_cmd ( wifi11_t *ctx, char *cmd );
void wifi11_create_tcp_udp_server ( wifi11_t *ctx, uint8_t mode, uint16_t port );
void wifi11_connect_to_ap ( wifi11_t *ctx, char *ssid, char *password );
This example reads and processes data from WiFi 11 clicks.
The demo application is composed of two sections :
Initializes the driver and powers up the module, then connects to the desired AP and creates TCP and UDP servers on the desired local port.
Logs all the received data and module's responses on the USB UART.
In order for the example to work, user needs to set the AP SSID, password, and Local port on which the TCP and UDP servers will be created. Enter valid data for the following macros: AP_SSID, AP_PASSWORD and LOCAL_PORT.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART Click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.