GithubHelp home page GithubHelp logo

potentialhades / esp32_simulation_subscriber_led Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 9 KB

Turn LED ON/OFF using Broker: Microcontroller ESP32 on Python (Wokwi Simulation + Hivemq Broker Client)

Python 100.00%
esp32 led led-controller microcontroller micropython-esp32 python english-language hivemq-mqtt-client mqtt mqtt-broker

esp32_simulation_subscriber_led's Introduction

IoT_Simulation

Turn the LED ON/OFF using Broker: Microcontroller ESP32 on Python (Wokwi Simulation + Hivemq Broker Client)

Run the simulation on Wokwi, publish on Broker and then see the LED turns ON/OFF

Project on Wokwi (Micropython on ESP32): https://wokwi.com/projects/329467649115292243

Broker -> option 1: Hivemq Broker Client: http://www.hivemq.com/demos/websocket-client/

Broker -> option 2: Install the app MQTT DASH on Google Play Store

Language: Portuguese

- Option 1: Hivemq Broker website config

Connection

  • Host -> broker.mqttdashboard.com
  • Port -> 8000
  • KeepAlive -> 60
  • Click on 'Connect'

Publish

  • Topic: sala306/led
  • QoS: 0
  • Message: Digit '1' to turn the LED on // Digit '0' to turn the LED off
  • Click on 'Publish'

Run the simulation on Wokwi, publish the message on Broker and then see on Wokwi project the LED turns ON/OFF

Subscriptions - Add new Topic (Optional)

  • Topic: sala306/led
  • QoS: 0
  • Click on 'Subscribe'

Run the simulation on Wokwi, publish the message on Broker and then see on Wokwi project the LED turns ON/OFF

- Option 2: App MQTT Dash on Smartphone

Config Broker

  • Click on button '+' (upper right corner of the screen)
  • Name the broker
  • Address: broker.hivemq.com
  • Port: 1883
  • Click on diskette button (upper right corner of the screen) to save

Publish (Turn ON/OFF) LED

  • Click on Broker
  • Click on '+' button (upper right corner of the screen)
  • Choose type: 'Switch/Button'
  • Name: LED
  • Topic: sala306/led
  • Click on diskette button (upper right corner of the screen) to save

Run the simulation on Wokwi, press the button and see on Wokwi project the LED turns ON/OFF

esp32_simulation_subscriber_led's People

Contributors

potentialhades avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.