You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On first run, with clear memory, the device starts and I can go to the configuration portal to modify the wifi credentials and save it. On save, and over serial, the device immediately spits out:
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
(few seconds later)
connected with XXXX, channel 1
dhcp client start...
ip:10.0.0.236,mask:255.255.255.0,gw:10.0.0.1
*WM: Connection result:
*WM: 3
station: c0:ee:fb:de:08:61 leave, AID = 1
rm 1
bcn 0
del if1
pm open,type:2 0
mode : sta(84:0d:8e:8f:4e:2e)
And stops. Then, after about a minute and a half, my own setup begins and everything goes on normally.
pm open,type:2 0
mode : sta(84:0d:8e:8f:4e:2e)
[CONFIG] There was an error opening config.json for reading. This is normal on first-run startup.
[CONFIG] Failed to read file. Using default configuration. This is normal on first-run startup.
[WIFI] mDNS responder started
[WIFI] TCP server started
[DS] Locating Dallas temperature sensors...[DS] Found 2 sensor(s).
[DS] Added temp sensor.
[DS] Added temp sensor.
[BME] Locating BME280...
[BME] Found sensor.
[IRRIGATION] Pump off.
[IRRIGATION] Pump on.
[IRRIGATION] Pump off.
[IRRIGATION] Pump on.
*WM: freeing allocated params!
[RAINFALL] Attempting to save rainfall data...
[RAINFALL] rainfall.txt does not exist. At startup this is expected.
[RAINFALL] File was written.
[IRRIGATION] Running routine...
[RAINFALL] Tip count from memory: 0
What exactly is happening during this timeperiod? Is this normal? Because as the serial prints suggest, the device has successfully connected after the credentials were correctly entered then the delay. Without wifimanager, and using hard-coded configuration variables, there is no delay.
Please note: after initial configuration, if I restart the device everything happens within 10-15 seconds:
connected with 113OceanPines, channel 1
dhcp client start...
ip:10.0.0.236,mask:255.255.255.0,gw:10.0.0.1
*WM: Connection result:
*WM: 3
*WM: IP Address:
*WM: 10.0.0.236
[CONFIG] There was an error opening config.json for reading. This is normal on first-run startup.
[CONFIG] Failed to read file. Using default configuration. This is normal on first-run startup.
[WIFI] mDNS responder started
[WIFI] TCP server started
[DS] Locating Dallas temperature sensors...[DS] Found 2 sensor(s).
[DS] Added temp sensor.
[DS] Added temp sensor.
[BME] Locating BME280...
[BME] Found sensor.
[IRRIGATION] Pump off.
[IRRIGATION] Pump on.
[IRRIGATION] Pump off.
[IRRIGATION] Pump on.
*WM: freeing allocated params!
[RAINFALL] Attempting to save rainfall data...
[RAINFALL] Tip count from memory: 0
[RAINFALL] File was written.
[IRRIGATION] Running routine...
[RAINFALL] Tip count from memory: 0
pm open,type:2 0
Have you read the first line of the AutoConnectWithFSParameters example?
Maybe it helps.
#include <FS.h> //this needs to be first, or it all crashes and burns...
Have you read the first line of the AutoConnectWithFSParameters example?
Maybe it helps.
#include <FS.h> //this needs to be first, or it all crashes and burns...
But it doesn't crash... Will try it out nevertheless.
within the confines of the if it isn't an issue as those things are abs required for everything else to work. in any case, it doesn't crash or print anything to the serial (as you can see all these have nested serial prints) to show those conditionals are triggered.
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
Lolin D1 mini pro
ESP Core Version: 2.4.0, staging
Description
On first run, with clear memory, the device starts and I can go to the configuration portal to modify the wifi credentials and save it. On save, and over serial, the device immediately spits out:
And stops. Then, after about a minute and a half, my own setup begins and everything goes on normally.
What exactly is happening during this timeperiod? Is this normal? Because as the serial prints suggest, the device has successfully connected after the credentials were correctly entered then the delay. Without wifimanager, and using hard-coded configuration variables, there is no delay.
Please note: after initial configuration, if I restart the device everything happens within 10-15 seconds:
Settings in IDE
Module: NodeMcu, Wemos D1
Additional libraries:
Sketch
My sketch is about 1000 lines:
https://pastebin.com/Jn6eZq43
But this is my basic setup:
Libraries:
The text was updated successfully, but these errors were encountered: