ninaw152
2.1.0.0
|
NINA-W152 Click is a compact add-on board designed for seamless integration of Wi-Fi and Bluetooth communication into your projects. Based on the NINA-W152 multi-radio module from u-blox, this Click boardâ„¢ provides dual-mode wireless connectivity, including Wi-Fi 802.11b/g/n and Bluetooth BR/EDR v4.2+EDR and Bluetooth Low Energy v4.2. It features an internal PIFA antenna for optimal performance and supports communication through UART and SPI interfaces, with secure boot and enterprise-level security protocols (WPA2/WPA3) ensuring reliable operation.
We provide a library for the NINA-W152 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 NINA-W152 Click driver.
ninaw152_cfg_setup
Config Object Initialization function. ninaw152_init
Initialization function. ninaw152_reset_device
This function resets the device by toggling the RST pin state. ninaw152_send_cmd
This function sends a specified command to the Click module. ninaw152_send_cmd_with_par
This function sends a command with specified parameter to the Click module. Application example shows device capability of connecting to a WiFi network and
sending TCP/UDP messages to an echo server, or processing data from a connected BT device.
The demo application is composed of two sections :
Initializes the driver and logger.
Application task is split in few stages:
Powers up the device, performs a factory reset and reads system information.
Configures connection to WiFi or BT depending on the selected example.
Checks the connection to WiFi access point.
Depending on the selected demo example, it sends a TCP/UDP message to an echo server over a WiFi network or processes all data from a connected BT device and sends back an adequate response message.
By default, the WiFi TCP/UDP example is selected.
For the BT example, we have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the Click board must be paired to exchange messages.
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. UART terminal is available in all MikroElektronika compilers.