This Project is meant to be build with https://platformio.org/install/ide?install=atom
If your on MacOS/Windows your may need to install EPS32 drivers. https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
git clone https://github.com/werty1st/esp32-simple-mqtt.git
cp src/dist-mySecrets.h src/mySecrets.h
If you don't want to host your own mqtt server, you can use a free service at: customer.cloudmqtt.com
- modify src/mySecrets.h
#define SSID "WIFI-Name"
#define PSK "wifipassword"
#define MQTTSERVER "m2x.cloudmqtt.com"
#define MQTTPORT 12345
#define MQTTUSER "aaaaaa"
#define MQTTPASSWORD "bbbbbb"
After having PlatformIO install the Firmware on the ESP32 you are ready to setup the Android App.
-
Install Android App https://play.google.com/store/apps/details?id=net.routix.mqttdash
-
Open MQTTDash and add your server
-
Screenshots
home view:
adding server:
setup push button widget:
setup push button widget:
setup magnet switch state widget: