You are connected in the same network your ESP connected.
Your Auth key must be the same as in your Blynk project. you can verify in your project
if after this you are facing the problem, try to replace Blynk.begin(auth, wifi, ssid, pass); to Blynk.begin(auth, wifi, ssid, pass, “blynk-cloud.com”, 8080); or Blynk.begin(auth, wifi, ssid, pass, “blynk-cloud.com”, 80);
FYI, So as not to confuse new users… when using the Blynk.begin(auth, wifi, ssid, pass); command the correct Cloud URL and port are automatically assumed by the library.
Can you clarify your question… do you understand enough programming to edit the example provided (for your use)… Or how the Blynk App works with virtual pins for App control, thus it shouldn’t matter what board setting you use.
Or are you referring to using an ESP-01 device? (otherwise, ALL other ESP8266 devices are considered “standalone”) If so, then yes, since you only have a few pins available, try them and test for yourself.
Hi this code works fine. I want to add 1 smoke detector and 1 water dominant detector in this code. The v0 pin will only turn the motion detector on and off. Other detectors will be active for 24 hours. When the water detector detects a problem, I want to switch off the solenoid valve with a relay.
You’ve been gifted some excellent code, and you’ve then proceeded to change the GPIO pins. You received some feedback about this, but you insist that what you’re doing is okay.
You’ve then said that you have some further requirements, then 80 minutes later say that you’re still waiting for help with these requirements.
Personally, I think that you’re very lucky to be given the working code from @ErfanDL, and the advice regarding GPIO usage from @Gunner. It’s now time to roll your sleeves up and do the rest yourself, and if you request advice about a specific issue along the way then take heed of any advice you receive.
@ykilicaslan Please don’t post PM to me begging for help in the title and a link here (I moved it back here)… not that begging in your existing topic will help much either Please learn with what we have already supplied.
you can not using two analog sensors with the ESP8266 boards. the ESP8266 only supported one analog pin. I thing your smoke and water dominant sensor is analog ! so you must using an Arduino board to supporting more analog pins.
He could use an analogue multiplexer, but a better option would probably be to use multiple ESP devices.
In reality, these sensors aren’t likely to be in the same physical place within the house, so multiple devices, with each located next to the area where the sensor is needed, is probably a better solution.
However, it seems that @ykilicaslan needs to invest some time in learning how to code, and how best to use Blynk, so I doubt that his alarm system will actually materialise.
On the subject of alarms, I came across this YouTube video the other day:
It seems like a really neat solution to adding IoT notifications to a standard battery powered alarm. If I was doing this then I’d probably go with the MQTT notification as described in the video, but it would be just as easy to add a Blynk notification, or use a Blynk API call.
hi this code is for 1 sensor. I have added it to the water and gas sensor, when the sensor detects the ALARM MESSAGE, when it detects the gas sensor, I want to write GAS ALARM. Could you help
my board : esp8266 nodemcu
Hello… We try to teach about Blynk, we do not write your code for you, that is up to you to learn.
You are trying to run both of these function at the exact same time every second… if you need then to run together, then combine them into ONE function, otherwise stagger the timers so they runs separately without convergence… e.g. 1000 = every second for one and 1300 = every 1.3 seconds for the other.