-->
Page 1 of 1

Mqtt Switch with Nodemcu

PostPosted: Fri Jun 21, 2019 9:49 am
by sheminasalam
I am a beginner with this type of programming and also a mechanical engineer who is trying to be familiar with IOT systems.To start with I want to write a code for my nodemcu V2 to publish a mqtt payload while a switch is turned on and off which is connected between the GPIO pin 2 and ground. I have a working mosquito mqtt broker with username and password set. I know this is very simple...but please find time write me an example code.