Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.66 KB

File metadata and controls

36 lines (24 loc) · 1.66 KB

Smarthome firmware for ESP8266 - MQ-4 Gas Sensor

Firmware for my board named ESP8266MCU11, based on ESP8266 microcontroller.

This device use a MQ-4 gas sensor and use MQTT protocol to send data to OpenHAB Smart Home Automation System.

Built with platformio (https://platformio.org) and visual studio code (https://code.visualstudio.com)

Depends on the following dd libraries:

  • ddcommon
  • ddwifi
  • ddmqtt
  • ddmq4

Compile & Build

To build your firmware bin file:

  • clone this repository with the --recursive flag to checkout dd-libraries
  • rename file include/user-config-template.h in include/user-config.h
  • set your WIFI and MQTT settings in file include/user-config.h

Firmware file will be in .pio/build/esp12e/firmware.bin

OTA / WebServer support

To upload using OTA, open http://ip-device/update on a browser and point to the firmware *.bin file

Open http://ip-device to get sensor state and device info in your browser

Branches

  • main contains work in progress commits - NOT STABLE branch
  • master contains STABLE commits and releases

Credits