I am noticing my ESP32 loses wifi connection at least 1-3 times a day. Reconnects can be between 5-10 minutes. One possible reason is that I am connected to a wifi network that hops between 2.4 and 5 ghz?The ESP32 isn’t very far from the router. 6 feet away with a wall in between. I have tried setting up a 2.4 network, but it still drops.
Can it be the microprocessor is bad? I have assigned a fix ip with my router. Would adding a fix ip in the config helps? I am running another similar device (ESP8266) with the same network settings and never loses connection.
# ESP32 NodeMCU
esphome:
name: bed_sensor
platform: ESP32
board: nodemcu-32s
wifi:
ssid: 'rice_dwarf'
password: !secret ssid_pass
ap:
ssid: rice_dwarf_
password: ''
# Fallback portal
captive_portal:
# Logging
logger:
mqtt:
broker: 192.168.1.20
username: !secret mqtt_user
password: !secret mqtt_pass
ota:
password: !secret ota_pass
.
.
.
.