MQTT wrapper library that adds MQTT variables for a very easy and clean use of the PubSubClient library.
Add one of the following lines to your platformio.ini
lib_deps =
# RECOMMENDED
# Accept new functionality in a backwards compatible manner and patches
https://github.com/hoesentoet/esp-mqtt-handler.git @ ^1.1.0
# Accept only backwards compatible bug fixes
# (any version with the same major and minor versions, and an equal or greater patch version)
https://github.com/hoesentoet/esp-mqtt-handler.git @ ~1.1.0
# The exact version
https://github.com/hoesentoet/esp-mqtt-handler.git @ 1.1.0-
Clone this repo
-
Make your edits
-
Add needed library dependencies in the
library.jsonfile -
For testing: Copy the following example
platformio.inifile in the root directory:[env:az-delivery-devkit-v4] platform = espressif32 board = az-delivery-devkit-v4 framework = arduino build_unflags = -std=gnu++11 build_flags = -std=gnu++17 lib_deps = knolleary/PubSubClient @ ^2.8 monitor_speed = 115200 monitor_filters = esp8266_exception_decoder, default
-
-
Commit everything (consider splitting it in multiple commits)
-
Modify the version in the
library.jsonand in thisreadme.mdfile -
Add changelog to the
docs/CHANGELOG.mdand commit everything -
Add release in GitHub with tag name e.g.
v1.0.0and release name1.0.0