Saturday, April 13, 2024

Introduction To Smart Wi-Fi

Key generated for posting data on ThingSpeak
Fig. 6: Key generated for posting data on ThingSpeak
Data posted on ThingSpeak API
Fig. 7: Data posted on ThingSpeak API

Before going ahead with data upload, the local Wi-Fi router needs to be paired with Smart Wi-Fi. Use the following command to connect it to your Wi-Fi router:

call(“conenctap”,”your router SSID”,”your router password”);

This command will pair Smart Wi-Fi to the Wi-Fi router you want to connect with. The response will be the IP address assigned to Smart Wi-Fi by the router.

Open ThingSpeak_upload.lua file (given in DVD), type =call(“Thingspeak_upload.lua”) on the left side of Send and press Send. Data output on ThingSpeak API is shown as:

Error: Reference source not found.

- Advertisement -

The application code that will post data to ThingSpeak server (Fig. 7) is given below.

myKey = “put your API key here”
function post()
call(“setLED”, 2);
field1 =;
call(“httpsend”, “”, 80, “/update?api_key=”..myKey..”&field1=”..field1);
call(“setLED”, 0);
call(“connectap”,” your router SSID “,” your router password “)
tmr.alarm(1, 15000, 1, post)

Applications of Smart Wi-Fi

Smart Wi-Fi is an IoT-enabler tool.The applications it can cater to are only limited by the imagination of makers. The very basic applications could be for smart homes or smart offices.

- Advertisement -

This module can be used for data logging, data monitoring and more, and provides very good support for product development. It also has all features to act as a full-fledged product.

Using Smart Wi-Fi module, we have seen how easy it is to interface and connect sensors to the Internet. Tools like ESPlorer and open source LUA scripts make development very easy and fast. Platforms such as ThingSpeak add to the benefits and provide support for testing and development of an IoT product.


  1. Really an interesting article. Just a small doubt. In the Block diagram, a line is shown connecting the Thingspeak to Smart Wifi. Does it mean that the Smart Wifi would be able to connect direct to the cloud bypassing the PC? if so, how is it achieved. Thanks in advance.


Unique DIY Projects

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components