Kaiserdragon2 / Mailbox-monitoring

Sends an Signal to your MQTT-Broker if a letter has arrived.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailbox monitoring

On startup the application connects to the configured wlan access point. After that it connects to the specified MQTT-Broker and publishes a message. Then the ESP32 enters deepsleep. If GPIO 2 or GPIO 4 get an High signal the ESP32 wakes up from deepsleep and sends a message to an MQTT-Broker. Which message is send depends on the GPIO that triggers the wakeup process.

Hardware

Connect a button and a pulldown resistor to each of the two GPIOs.

About

Sends an Signal to your MQTT-Broker if a letter has arrived.


Languages

Language:C 95.5%Language:CMake 2.5%Language:Makefile 2.0%