Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By sheminasalam
#82905 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.