Introduction To Smart Wi-Fi

Prashant Sahay is BE in instrumentation and controls from University of Pune. He enjoys designing electronic products. He is working as senior product engineer at Knewron Technologies & T. Anand is managing director at Knewron Technologies

23344
Advertisement
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.

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 = adc.read(0)/10;
print(fmt(“%3.1f”,field1));
call(“httpsend”, “api.thingspeak.com”, 80, “/update?api_key=”..myKey..”&field1=”..field1);
call(“setLED”, 0);
tmr.delay(50);
end
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.

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.


Advertisement


1 COMMENT

  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.

SHARE YOUR THOUGHTS & COMMENTS

Please enter your comment!
Please enter your name here