This LUA script is for ESP8266 hardware.
Double relay command with an ESP8266 through HTTP request (Jeedom)
- Connect to a wifi AP
- Start a web server and wait for HTTP request
- If HTTP request received, parse request and get rotate param
- If
rotate == UP
:GPIO_0 = HIGH
andGPIO_2 = LOW
- If
rotate == DOWN
:GPIO_0 = LOW
andGPIO_2 = HIGH
- If
rotate == STOP
:GPIO_0 = HIGH
andGPIO_2 = HIGH
- If
rotate == RST
: ESP8266 is restart