dcbo / ESP32-BLE-2-MQTT-Scanner

ESP32 scans for BLE Advertisement Beacons and reports them as JSON via Serial-Port and MQTT
GNU General Public License v3.0
2 stars 1 forks source link

Wlan connection lost every 5 minutes #1

Open cg089 opened 3 years ago

cg089 commented 3 years ago

Hi,

every couple of minutes the wlan connection is lost. Is this maybe a buffer runs full?

(........)"rssi":"-69"}}}

Lost WiFi-Connection - Rebooting. ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8

ESP32 BLE Scanner

Connecting to WiFi ... .connected. IP: 192.168.11.73 Connecting to MQTT-Server ... connected. Starting BLE Scan-Task ...done. {"Results":{ (........)

dcbo commented 3 years ago

Can't reproduce. Mine is running since month without any reboot.

It is true, that the ESP is rebootet, when the Wifi Connection is lost. If the WIFI is lost, there is no reason to operate further and for me it is enough, that the device reboots and tries to reconnect to WIFI.

Maybe a Power-Issue?

gnome4711 commented 2 years ago

Hi!

I'm having the same issue. I tried different scan times. The connection gets lost avery 60-65 messages.

gnome4711 commented 2 years ago

I printed the free memory to serial. The memory decreases after every scan. when its below 28k the conection gest lost which causes a reboot.

gnome4711 commented 2 years ago

Hi, I solved this for me me by cutting out the part where the manufacturerdata is inserted into the json string. I guess the 'myData' variable (its content) franctured the memory somehow. But I'm not sure if that is even possible.

Maybe this gonna help someone in the future.

greets

gnome