ESP32 / ESP8366 Arduino: Creating a simple class

The objective of this post is to explain how to create a very simple class and instantiate an object of it in the Arduino core. This code was tested on both the ESP32 and the ESP8266. The ESP32 tests were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board.