We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-09-21
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: WIFI
Downloaded: 2407 times
Not followed.
License: MIT license
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 single-chip low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Shenzhen B&T Technologies Co., Ltd.
Do you want to subscribe in order to receive notifications regarding "WiFi 11 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "WiFi 11 click" changes.
Do you want to report abuse regarding "WiFi 11 click".
Library Description
The library contains a basic functions for using WiFi 11 click.
Key functions:
void wifi11_set_conect_to_ap( char *username, char *password )
- Connect to APvoid wifi11_send_command ( uint8_t *cmd )
- Send commandExamples description
The application is composed of three sections :
void application_init ( )
{
wifi11_uart_driver_init
(
( wifi11_obj_t )&_MIKROBUS1_GPIO,
( wifi11_obj_t )&_MIKROBUS1_UART
);
Delay_ms( 200 );
wifi11_reset_device( );
Delay_ms( 5000 );
mikrobus_logWrite( "---- Start test command -----", _LOG_LINE );
wifi11_send_command( &WIFI11_CMD_AT[ 0 ] );
Delay_ms( 200 );
wifi11_send_command( &WIFI11_CMD_ATSV[ 0 ] );
Delay_ms( 200 );
mikrobus_logWrite( "---- WiFi configuration -----", _LOG_LINE );
wifi11_send_command( &WIFI11_CMD_ATPW[ 0 ] );
Delay_ms( 1000 );
wifi11_set_conect_to_ap( &wifi11_net_username[ 0 ], &wifi11_net_password[ 0 ] );
Delay_ms( 10000 );
wifi11_send_command( &WIFI11_CMD_ATW[ 0 ] );
Delay_ms( 1000 );
mikrobus_logWrite( "---- TCP example (Client) -----", _LOG_LINE );
wifi11_send_command( &WIFI11_CMD_ATPC[ 0 ] );
Delay_ms( 10000 );
wifi11_send_command( &WIFI11_CMD_ATPT[ 0 ] );
Delay_ms( 1000 );
wifi11_send_command( &WIFI11_CMD_ATPK[ 0 ] );
Delay_ms( 1000 );
}
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.