Please see either the
AWS_IoTbranch or theHiveMQbranch for reference.
- This repo contains functional examples for connecting an ESP32 to both AWS IoT Core and HiveMQ's test broker.
- The ESP32 can send messages via a momentary push button wired to
GPIO4 - The ESP32 can receive messages from either broker turning on or off the built in LED on
GPIO2
- Note the diagram does not show a built in LED so an external LED has been added for reference.
- The built in LED is often on
GPIO2orGPIO13check your boards layout or you can wire an LED as shown here.
- Please see the readme for each of the individual branches for additional files and libraries needed for this project.