my PIR sensor wakes my ESP, connects to WiFi and sends a message by Mqtt.
This process will take about 5-7 seconds. Thats a way to long for switching lights on by motion, when I enter a dark room at night. Are there any ways to speed up the connection process ?