MQTT client (updated: 20 Mar 2017, 11:13:03)

MQTT Client. Works with Mosquitto broker, two way communication, sensors data publishing and subscriptions for control commands.


MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. For example, it has been used in sensors communicating to a broker via satellite link, over occasional dial-up connections with healthcare providers, and in a range of home automation and small device scenarios. It is also ideal for mobile applications because of its small size, low power usage, minimised data packets, and efficient distribution of information to one or many receivers.

Additional options:

MQTT Lite Mode - short tops, without the inclusion of topics settings will have a longer view text email/hostname/sensors/xxx and email/hostname/gpio/xxx

fix 2.05.16 - fix for stability MQTT work.


Status Connection MQTT

On the service tab, http://[ip_adr]/debug You can find the status of the connection to the server MQTT.

Example: MQTT IP: 192.81.221.198 State: 15/Errors: 1

That means the module is connected to the IP address 192.81.221.198 server. Status of connection 15, the number of reconnections - 1.

Status may take a few options:

15 - the connection is successful. The data to be transmitted.

6 - may not be a valid username/password

7.8 - Connection error, failure, usually corrected by restarting the module. A rare problem, but it is, for example, if the server was disconnected.

Restrictions MQTT

The Free version is impossible to control the device, sending interval is fixed at 600 seconds.

Limiting the length of the field login - 20 characters Password - 10 characters. Currently it is impossible to increase the length of the field.

If you change the settings MQTT server, username or password, the name of the device is recommended to restart the device.

Service MQTT team:

email/hostname/system/restart - restart of the module.

email/hostname/system/upd - update on the OTA.

email/hostname/system/aupd - Update on Auto OTA.

The topics need to send the data number 1.


MQTT servers:

http://flyhub.org - support online scheduling and monitoring metrics for debugging.

Android applications are compatible with the project:

Mqtt IoT - Аuthor Dolfik WIKI.

Linear MQTT Dashboard - Аuthor Ravend WIKI.


Topic Description
email/hostname/hostname device Name
email/hostname/freemem Free RAM
email/hostname/ver Version and firmware build date
email/hostname/uptime uptime device
email/hostname/rssi Signal level (not older SDK)
email/hostname/vdd Supply voltage (ESP8266)
email/hostname/adc Internal ADC (ESP8266)
email/hostname/lm temperature sensors LM75 or DS1621
email/hostname/inav Voltage sensor with INA219
email/hostname/inac Current sensor with INA219
email/hostname/dhttХ Temperature sensors DHT22 DHT11
email/hostname/dhthХ Humidity sensors DHT22 DHT11
email/hostname/bmpt temperature sensors BMP180/085
email/hostname/bmpp Pressure sensors BMP180 / 085
email/hostname/cntXi Data counter 60
email/hostname/light The illuminance sensor with BH1750
email/hostname/amt temperature sensors AM2321
email/hostname/amh Humidity sensor AM2321
email/hostname/dswX temperature sensors DS18B20
email/hostname/bmet Temperature sensor with BME280
email/hostname/bmeh Humidity sensor BME280
email/hostname/bmep Pressure sensor with BME280
email/hostname/shtt Temperature sensor with SHT21
email/hostname/shth Humidity sensor SHT21
email/hostname/sht30t Temperature sensor with SHT30
email/hostname/sht30h Humidity sensor SHT30
email/hostname/heat temperature sensors MAX6675
email/hostname/cvv Voltage sensor with CC/CV
email/hostname/cvc Current sensor with CC/CV
email/hostname/pmv Voltage sensor with Power Monitor
email/hostname/pmc Current sensor with Power Monitor
email/hostname/pmw Power devices with Power Monitor
email/hostname/pmwh Flow from the device Power Monitor
email/hostname/rfid Data from the RFID
email/hostname/co2 Sensors CO2 MH-Z1x
email/hostname/ping ping test
email/hostname/adcX data from ADC PCF8591
email/hostname/rcdata Receiving the code with radio control
email/hostname/rtct Temperature DS3231
email/hostname/nrfYcX Counter modules with NRF24
email/hostname/nrfYtX The temperature of the modules NRF24
email/hostname/nrfYhX Humidity module with NRF24
email/hostname/nrfYaX ADC modules NRF24
email/hostname/nrfYgX Status GPIO module with NRF24
email/hostname/nrfYbX Other data from the modules NRF24
email/hostname/rssigsm RSSI GSM
email/hostname/irdata Receiving the code with IR Remote
email/hostname/pcfcntX Pulse counter PCF8583
email/hostname/rcsXt Temperature sensor with modules RC
email/hostname/rcsXh Humidity sensor module with RC
email/hostname/rcsXa ADC modules RC sensor
email/hostname/countrstX The counter is reset pulses.
email/hostname/counterX Pulse counters.
email/hostname/gpiointX interrupt Event
email/hostname/pwmX PWM Channel status, set status same topic
email/hostname/inputX GPIO Input status (MQTT)
email/hostname/outputX GPIO Output status and control (MQTT)
email/hostname/valuedesX Global variables constructor code
email/hostname/scale scale HX711
email/hostname/mcpa1 data from ADC MCP3201
email/hostname/ring Number of incoming call from the GSM module
email/hostname/sms The text of incoming SMS GSM module
email/hostname/tel The phone number at incoming GSM module SMS
email/hostname/dtmf Incoming team DTMF GSM module
email/hostname/adsX data from ADC ADS1115
email/hostname/nexX Data from Nextion displays. Receiving keystrokes from the touch screen
email/hostname/vzco2 CO2 VZ-89T
email/hostname/nlXt Temperature sensors with NooLite
email/hostname/nlXh Humidity sensor with NooLite
email/hostname/hcsr04 HC-SR04
email/hostname/tsllux data from TSL2561
email/hostname/ibutton ID iButton key
email/hostname/ibuttonst State iButton key
email/hostname/upsi Data from UPS Monitor. Input voltage.
email/hostname/upsf Data from UPS Monitor. Input voltage.
email/hostname/upso Data from UPS Monitor. The voltage at the output.
email/hostname/upsh Data from UPS Monitor. Network frequency
email/hostname/upst Data from UPS Monitor. The temperature in the housing
email/hostname/upsb Data from UPS Monitor. Battery voltage.
email/hostname/upss Data from UPS Monitor. Load
email/hostname/mlxo Object temperature MLX90614
email/hostname/mlxa Ambient temperature MLX90614
email/hostname/vwtXY Temperature VirtualWire
email/hostname/vwhXY Humidity VirtualWire
email/hostname/vwcXY Counters VirtualWire
email/hostname/vwaXY ADC VirtualWire
email/hostname/vwbXY One byte VirtualWire