Using the Wi-Fi Library
Last updated
Last updated
The Wi-Fi features of LinkIt 7697 are provided through the LWiFi library. Its interface is very similar to the Arduino Wi-Fi library, therefore most of the examples should work without needing modifications.
The board comes with an LWiFi library that provides nearly the same interface as the Arduino's WiFi library. In this section, you'll learn how to run the ScanNetwork example, which shows a list of nearby Wi-Fi access points, the steps are as follows:
Select File > Examples > LWiFi > ScanNetworks.
2. Click the Upload button and wait for the Done Uploading message to appear.
3. Click the Serial Monitor button in the toolbar, as shown below:
4. Adjust the Baud rate setting to 9,600. A list of nearby access points and their signal strength should appear in the output window, for example.
You can press the onboard RST button to re-run the sketch without having to reconnect to the serial monitor. This is because the RST button only resets the MT7697 SoC but not the CP2102N chipset. The COM port is always available even when the SoC has been reset.