๐๏ธ 00 Setting up enviroment
Considering you are using Arduino IDE. You can add the ESP8266 support by taking following steps:-
๐๏ธ WiFi Access point
The esp8266 is able to be configured as an access point (AP) and generate its own wifi network with ssid and password. This method is useful when you do not have access to a wifi network or if you want to work on a network specific to the microcontroller.
๐๏ธ WiFi Station Mode
Station Mode (STA) is what most people would consider the normal mode for a WiFi device. A device uses Station Mode to join a network that already exists, exactly like your smartphone does when its connects to your WiFi network at home
๐๏ธ MQTT
MQTT is a lightweight, publish-subscribe, machine to machine network protocol. It is designed for connections with remote locations that have devices with resource constraints or limited network bandwidth. MQTT, or MQ Telemetry Transport, has become a de facto standard in this world, as itโs easy to set up, and works well without a lot of computing overhead. โMQโ at one time stood for Message Queuing, but it has now apparently transcended its acronym status.