Arduino nano wifi

This library allows you to use the Arduino UNO WiFi Rev.2, Arduino NANO 33 IoT , 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, WPA2 Personal and WPA2 Enterprise encryptions. 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.

To use this library
#include SPI.h
#include WiFiNINA .h

Firmware Update

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.

Utilities

You find these two utilities under Examples — WiFiNINA — Tools.

    : Reads the required firmware number required from library and matches with the one installed on the board or the shield. : The sketch that must be loaded to allow the firmware and certificates update process through the integrated plugin of Arduino Software (IDE) rel. 1.8.5 or later.

Examples

    : A simple web server to manage a LED with AP feature : Demonstrates how to connect to an open network : Demonstrates how to connect to a network that is encrypted with WEP : Demonstrates how to connect to a network that is encrypted with WPA2 Personal : Displays all WiFi networks in range : Displays all WiFi networks, also the encrypted ones, in range : A simple web server to manage a LED : Set up a simple chat server : Demonstrates how to ping a website or IP address : Connect to a website using SSL : Query a Network Time Protocol (NTP) server using UDP : Send and receive a UDP string : Connect to a remote webserver : Make repeated HTTP calls to a webserver : Serve a webpage from the WiFi module

Last revision 2019/12/24 by SM

WiFi class

The WiFi class initializes the ethernet library and network settings.

Client class

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

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).

UDP class

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

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.


Источник: www.arduino.cc