esp relay control mqtt Description
Basic smart home wifi light switch DIY remote turning on and off devices with wireless smart home switch app mqtt. It is a nice starter application. It looks like an end user application. In this way, it puts you one step ahead.
First make the mqtt connection.
Then name the device and add tags and that's it.
Remember, you can only add 2 devices.
Develop your own iot (internet of things) project business.
A few examples of what can be done;
You can make smart curtains.
You can make a smart socket.
You can make a smart lamp.
You can make a smart faucet.
You can water the plants in your home.
We can make smart food applications for your pets.
home automation.
wireless robot car.
rc car.
key.
You can do mechanical work with a small DC motor.
Download the ino file to your EPS card from the documents section of the application and upload it to the card with the help of Arduino ide.
You can use more than one pinout.
The logic of the application is that after establishing the mqtt connection, it sends data, that is, tags, through a single "topic".
if(data=="tag1"){
lamp1 on
}
if(data=="tag2"){
lamp1 off
}
Note that tag1 and tag2 represent on and off for you. And knowing this, you can give whatever name you want to tag1 and tag2.
For example, button1's labels might be on1 and off1. Button 2 labels can be on2 off2, you can use the pins with as many conditions as you want. You can also use more esp with the same mqtt settings.
Use more pins by adding more conditions this way.
Simple and easy.
First make the mqtt connection.
Then name the device and add tags and that's it.
Remember, you can only add 2 devices.
Develop your own iot (internet of things) project business.
A few examples of what can be done;
You can make smart curtains.
You can make a smart socket.
You can make a smart lamp.
You can make a smart faucet.
You can water the plants in your home.
We can make smart food applications for your pets.
home automation.
wireless robot car.
rc car.
key.
You can do mechanical work with a small DC motor.
Download the ino file to your EPS card from the documents section of the application and upload it to the card with the help of Arduino ide.
You can use more than one pinout.
The logic of the application is that after establishing the mqtt connection, it sends data, that is, tags, through a single "topic".
if(data=="tag1"){
lamp1 on
}
if(data=="tag2"){
lamp1 off
}
Note that tag1 and tag2 represent on and off for you. And knowing this, you can give whatever name you want to tag1 and tag2.
For example, button1's labels might be on1 and off1. Button 2 labels can be on2 off2, you can use the pins with as many conditions as you want. You can also use more esp with the same mqtt settings.
Use more pins by adding more conditions this way.
Simple and easy.
Open up