Reference   Language | Libraries | Comparison | Changes

WiFiNINA library

This library allows you to use the Arduino UNO WiFi Rev.2, Arduino MKR 1010 and Arduino MKR VIDOR 4000 WiFi capabilities. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports WEP and WPA2 Personal encryption. This library support all the same methods of the original WiFi library plus the connectSSL(). The WiFiNINA library is very similar to the Ethernet and the library WiFi, and many of the function calls are the same.

Note

This library requires that your board has a matching firmware installed. When the library is updated, also the firmware might be updated, but it is not mandatory. To avoid any issue and ensure that you have the most up to date setup, we suggest that you check your WiFiNINA library with the Arduino Software (IDE) Library Manager. There is an option in the Preferences that enables the check for updates of any of the installed libraries at startup. If you haven't installed the WiFiNINA library yet, you won't get notified about its updates. Anyway, you get the library status just writing its name in the search field on top of the Library Manager.

When the library version installed on your computer is the latest available, you may check the firmware version of the board or the shield. We have prepared a utility sketch to check the firmware version and its matching with the library. If the firmware needs an update, another utility sketch enables the process. Below the link to the relevant tutorials.

Examples


Last revision 2018/07/11 by SM

WiFi class

The WiFi class initializes the ethernet library and network settings.

Server class

The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).

Client class

The client class creates clients that can connect to servers and send and receive data.

UDP class

The UDP class enables UDP message to be sent and received.

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.