MQTT-ethernet-node-4-buttons-4-leds by felison

MQTT Ethernet Node with 4 buttons and 4 leds (or relays).
![enter link description here](http://fritzing.org/media/fritzing-repo/projects/m/mqtt-node-4-buttons-4-leds/images/Sketch-MQTT-node-4-buttons-4-leds-V0001_bb.jpg)MQTT Ethernet Node with 4 buttons and 4 leds (or relays). Platform: Arduino-Uno with W5100-Ethernet-Shield. Leds can be replaced with relays to create 4 relay node. Button1 controls led1 and outgoing MQTT message1 Button2 controls led2 and outgoing MQTT meesage2 Button3 controls led3 and outgoing MQTT message3 Button4 controls led4 and outgoing MWTT message4 Incoming MQTT message1 controls led1 Incoming MQTT message2 controls led2 Incoming MQTT message3 controls led3 Incoming MQTT message4 controls led4 Note: Needs library Bounce2. This library is not yet available from Codebender website, but is to be downloaded from Arduino website.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:322149" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>

  • 2017-11-28 Joris Janssens

    Thank you for this code.... I could kiss you!