Table of Contents
WHAT DO YOU MEAN BY IoT (INTERNET OF THINGS)?
INTRODUCTION TO IoT
When you surf the Internet or purchase a cellphone online, say on flipkart, you use Hyper Text Transfer Protocol Secure (HTTPS), Transmission Control Protocol (TCP), Domain Name System (DNS), IPv6 or IPv4 data link layer protocols and 802.3 protocols.
These are the basic networking protocols inside a browser and computer OS. You use these protocols even while you check for an email on your computer.
Protocols are building blocks of all networking technologies on the Internet. These are softwares and size of them are in Mega Bytes (MB). Researchers all over the world trying to reduce the size of TCP/IP protocols.
HTTP is a software protocol, which comes inbuilt in browsers such as chrome. It sends command to web server and get replies from the same. This software listens on port number 80.
WHO IS WHO
Devices that connect to Wi-Fi network are called stations (STA). Connection to Wi-Fi is provided by an access point (AP), that acts as a hub for one or more stations. The access point on the other end is connected to a wired network.
An access point is usually integrated with a router to provide access from Wi-Fi network to the Internet. Each access point is recognized by a SSID (Service Set IDentifier), that essentially is the name of network you select when connecting a device (station) to the Wi-Fi.
ESP8266 module can operate as a station, so we can connect it to the Wi-Fi network. It can also operate as a soft access point (soft-AP), to establish its own Wi-Fi network.
The ESP8266WiFi library provides wide collection of C++ methods (functions) and properties to configure and operate an ESP8266 module in station and / or soft access point mode.
The ESP8266WiFi library is broken up into several classes. In most of cases, when writing the code, user is not concerned with this classification.
CLIENT
The Client class creates clients that can access services provided by servers in order to send, receive and process data.