wifi8
2.0.0.0
|
WiFi 8 Click is a compact add-on board that contains a wireless combo module. This board features the ATWINC3400-MR210CA, a Bluetooth 5.0 certified module optimized for low power and high-performance mobile applications from Microchip Technology.
We provide a library for the WiFi8 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for WiFi8 Click driver.
wifi8_cfg_setup
Config Object Initialization function. wifi8_init
Initialization function. wifi8_default_cfg
Click Default Configuration function. wifi8_init_drv
Synchronous API to initialize the device driver. wifi8_connect
Asynchronous Wi-Fi connection function. wifi8_socket_bind
Asynchronous bind function associates the provided address and local port to the socket. This application showcases capability of the WiFi 8 Click board.
It initializes device, connects to local WiFi. Creates TCP, waits for connection and logs every message it receives for clients when it receives CR or LF flag it returns message back to Client.
The demo application is composed of two sections :
Initializes Host logger, and communication module and pins.
Then resets device and initializes devices firmware. If no error occurred it sets callback functions for WiFi and TCP socket, and checks current firmware version. After firmware is read it connects to local WiFi network set by user. When connected it initializes and creates socket.
It loops function for handling events. Should notify and log messages when Client
is connected/disconnected to TCP server and returns back when receives CR or LF flag.
User should set MAIN_WLAN_SSID and MAIN_WLAN_PSK for connecting to local network.
When devices connects to network it will log its IP that user need to connect to. After user connects it should get notification and it can send data to server. Server will return message "WiFi 8 Click" when Client sends CR or LF character in message.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
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.