logo elektroda
logo elektroda
X
logo elektroda

ESP8622 - how to send the $wyslij variable to the ESP8622 to control a relay?

globalinfo 2451 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15604077
    globalinfo
    Level 13  
    Hello everyone.

    I have this code on my website.

    Code: PHP
    Log in, to see the code

    After executing this code I would like to send the variable $wyslij to the ESP8622 which will turn the valve on or off.

    Can you please suggest how this can be done. :?: :idea:
  • ADVERTISEMENT
  • #2 15605291
    szymon122
    Level 38  
    192.168.1.1/$wyslij
    (give IP esp8266 in place of this IP).
  • ADVERTISEMENT
  • #4 15805536
    piotr411
    Level 22  
    This is not a good connection, the power supply should be before the AS1117, i.e. connected under Vin. It is a good idea to add a transistor on the GPIO, as the maximum load of the ESP is only 12mA
ADVERTISEMENT