ESP32

Connect ESP32-based boards with the Qubitro MQTT package.

Introduction

This example uses Qubitro MQTT Client that offers a custom naming convention for easier development. It is possible to use any 3rd party MQTT Client with the following requirements.

For example, it is possible to use the WiFiClientSecure library to connect MQTT over TLS with 8883 port.

Conventions

The helpful naming conventions for 3rd party MQTT libraries.

Value Name

Qubitro Equivalent

User Name

Device ID

User Password

Device Token

Client ID

Device ID

Production port

8883

Development/Test port

1883

Examples

Subscribe and Publish Example

The following code connects to your wireless network, generates simulated sensor values, and publishes them to the Qubitro.

Example output:

Connecting to WiFi...
WiFi Connected.
Local IP: 192.168.1.100
RSSI: -50
Connecting to Qubitro...
Connected to Qubitro.
Sensor value 1: 20
Sensor value 2: 40

WifiClientSecure Example

✨ Support and Feedback

If you have further questions or suggestions, feel free to join πŸ‘‡ -> Qubitro Community Discord via this invitation link.

Last updated