hardware-help
coding-help
official-product-help
project-showcase
general-help
pcb-help
adafruit-help
official-product-help
robotics-help
sensors-help
coding-help
hardware-help
esp-help
pi-help
i2c-serial-help
I need help with my code. I'm trying to make a code with PID control.

nodemcu esp8266 loses connection unless wifi is scanned constantly
WiFi.status() returns WL_CONNECTED). However, even when it is connected, it doesn't respond to pings or http requests. After about 5 seconds it disconnects (WiFi.status() returns WL_DISCONNECTED). Naturally, the esp is still not reachable. After just a little bit longer, WiFi.status() returns WL_NO_SSID_AVAIL. At this point, it just keeps returning that and the status never changes.
After tinkering around for a while I checked what would happen if I scanned the available networks. I did so via WiFi.scanNetworks()
I started scanning the networks periodically (about every second, which is also the period at which I am checking the WiFi status) after I started doing that, the esp no longer lost connectivity and was perfectly reachable.
Here is how I am connecting to the network:
```arduino...Arduino Project: RFID
8x8 Matrix games
Servo Help
Arduino R4 wifi webserver
OGX360_T4
help with arduino 4 wheeled robocar line follower
Differential Steering
Chess Clock coding
Wifi R4 Controlling a Servo
2 NRF24L01 Pal/na modules communication
"Compilation error: grpc: error while marshaling: string field contains invalid UTF-8"
My LCD is lighting up but it does not show any text although I tried to code it already.

A problem while socket
How do I communicate between Arduino and OpenCV?
Oled Oval Eyes

ESP 32 locking up

