Than I uploaded the following code:
Case 1
GPIO2 = 4
gpio.mode(GPIO2, gpio.OUTPUT)
gpio.write(GPIO2, gpio.LOW)
Case 2
GPIO0 = 3
gpio.mode(GPIO0, gpio.OUTPUT)
gpio.write(GPIO0, gpio.LOW)
My connections use FTDI232 and ESP8266 ESP-01:
FTDI VCC 3.3v > ESP-01 VCC
FTDI VCC 3.3v > ESP-01 CH_PD
FTDI GND > ESP-01 GND
FTDI TX > ESP-01 RX
FTDI RX > ESP-01 TX
There are two LEDs connected:
LED (-) > FTDI GND
LED (-) > FTDI GND
When I turn on my device WITH the GPIO0 or GPIO2 connected to LED (+), they are HIGH
When I turn on my device WITHOUT the GPIO0 or GPIO2 connected to LED (+) they are LOW.
This problem occurs with net.createServer:
When I turn on my device WITH the GPIO0 or GPIO2 connected to LED (+), the LEDs are HIGH and the service do not start.
When I turn on my device WITHOUT the GPIO0 or GPIO2 connected to LED (+) they are LOW and the service start normally. Then if I connect the GPIO0 and GPIO2 the service turn on/off the LEDs.
What am I doing wrong? If I can't use the GPIO0 and GPIO2 to control sensors