Coding a program to send the sensed data to the internet
If you remember, in Chapter 9, IoT Temperature-Logging System, we found that an ESP-01 module was used because it integrates Wi-Fi communication through ESP8266. This module was programmed using AT commands through the STM32 Blue Pill microcontroller (where AT stands for Attention). As mentioned at the beginning of the chapter, we will use the NodeMCU development board, which is depicted in the following photo:
This board is also based on the ESP8266 microcontroller. However, unlike the SP-01 module, this can be programmed directly from its micro USB port using different development IDEs and various programming languages such as Lua and C. It also includes general-purpose input/output (GPIO) pins to be programmed according to the developer's needs. These characteristics make the NodeMCU microcontroller one of the most popular IoT platforms today...