The following example shows how to use automatic device pairing to connect GUI-O application with ESP8266 in MQTT (IoT) mode.

ESP8266 & Arduino & GUI-O automatic pairing

The following example shows how to automatically pair GUI-O application with ESP8266 in MQTT (IoT) mode. Although the example uses ESP8266 Wemos D1 R1, it should be compatible with any other ESP8266 board.

The procedure is in principle identical to the ESP32 pairing (check the video tutorials under the ESP32 pairing section for additional information). There are some slight differences between ESP32 and ESP8266 pairing procedure - notably when setting up the board and required libraries. Step-by-step procedure is described in the sections below.

VERY IMPORTANT NOTE: The ESP8266 board acts as a bridge. All commands received from the MQTT broker are transmitted over the ESP8266 serial port (Tx). Analogously, all commands that need to be sent to the MQTT broker must be transmitted over the ESP8266 serial port (Rx). This requires an external microcontroller to handle the incoming commands (sent by the GUI-O application) and outgoing commands (received by the GUI-O application).

After programming the ESP8266 with the pairing code, it can be used, for example, to replace an existing USB Serial Bluetooth module to achieve WiFi connectivity. Furthermore, since the ESP8266 works as a standalone board that communicates with the GUI-O application, it can also be used in any other non-Arduino projects.


Step 1: Add ESP8266 board support

Step 2: Include necessary libraries

Step 3: Upload the code

Step 4: Pair GUI-O application with ESP8266 board

The pairing procedure is fully guided within GUI-O application. The important parts are described below.

Important notes

Connect . Create . Control

Connect . Create . Control

YouTube channel