Hi Robert,
on a new build, ESP32 mounted on PCB with just TSL2591 connected. Fed via USB to laptop. Tried 127-07 and no wifi connection. Arduino monitor shows
err: /log_config.jsn file. Create defaults.
LC: /home_config.jsn NOT found
init I2C
init: TSL2591
init STATIONPOINTMODE
try alt ssid/pwd pair
err: start WiFi: Reboot
ets Jun 8 2016 00:22:57
then just repeats the reboot over and over.
I tried a simple wifi / blink and that established wifi connection and blinked so knew chip was probably OK. Copy / pasted credentials back into 127-07 but still same.
Tried old firmware 125-63 (had to add ESP32Time) and worked. Connected, Win app and webserver all working.
Unfortunately I just got lost trying to see what the differences between these versions might be.
Any ideas to check?
Thanks
Len
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
try alt ssid/pwd pair
err: start WiFi: Reboot
ets Jun 8 2016 00:22:57
indicates it could not login to your network
things to check
1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?
2. the ssid and password info is in the firmware file controllerconfig.h
3. After programming the firmware, DID you upload the data sketch files? If not then it cannot boot
I see you are running station mode so it is these lines
From above: 1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?
Was enabled in both versions 127-07 and 125-63. Commented out in 127-07 and now connects. How do I create wificonfig.jsn file? I assumed it was automatically created?
Windows App now retains data, with 125-63 it didn't.
Items 2. & 3. were all correct.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
create it with a text editor
save it in the data folder as wificonfig.json
then use the data sketch upload in arduino IDE
OR
use the upload feature of the web server, navigate to the file, and selected upload it
this is what it looks like
{"mySSID":"FIREFOX","myPASSWORD":"boomchugachug","mySSID_1":"redHot","myPASSWORD_1":"splinter_6"}
I thought that i had the same problem, so i carried out the above changes and the ESP32 connected to my WIFI, however after rebooting the device it will no longer connect to my home WiFi, It will however connect to a mobile hotspot from my smartphone without any issues. any suggestions on what might be the issue?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried all of that on multiple attempts and nothing would work, I'm 100% sure credentials are correct as they were copy and pasted from the router admin page, tried changing SSID and pswd on the router to something very simple to rule out an error in the credentials, but it just will not connect to it, eventually gave up and set up another WiFi access point, it will connect to that without any issues. in the long term I'll need an access point close to where the mySQM+ will be installed anyway so this just pushed me along a bit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I say that because I use multiple accesspoints. On one of them, it locks out the mySQM+ controller when I forget to upload the wificonfig file and the controller then keeps rebooting.
Then I correct and upload the file, I cannot reconnect at all. It takes 24 hrs before it will let the controller connect.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Robert,
on a new build, ESP32 mounted on PCB with just TSL2591 connected. Fed via USB to laptop. Tried 127-07 and no wifi connection. Arduino monitor shows
err: /log_config.jsn file. Create defaults.
LC: /home_config.jsn NOT found
init I2C
init: TSL2591
init STATIONPOINTMODE
try alt ssid/pwd pair
err: start WiFi: Reboot
ets Jun 8 2016 00:22:57
then just repeats the reboot over and over.
I tried a simple wifi / blink and that established wifi connection and blinked so knew chip was probably OK. Copy / pasted credentials back into 127-07 but still same.
Tried old firmware 125-63 (had to add ESP32Time) and worked. Connected, Win app and webserver all working.
Unfortunately I just got lost trying to see what the differences between these versions might be.
Any ideas to check?
Thanks
Len
try alt ssid/pwd pair
err: start WiFi: Reboot
ets Jun 8 2016 00:22:57
indicates it could not login to your network
things to check
1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?
2. the ssid and password info is in the firmware file controllerconfig.h
3. After programming the firmware, DID you upload the data sketch files? If not then it cannot boot
I see you are running station mode so it is these lines
Last edit: brownrb 2022-04-28
From above: 1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?
Was enabled in both versions 127-07 and 125-63. Commented out in 127-07 and now connects. How do I create wificonfig.jsn file? I assumed it was automatically created?
Windows App now retains data, with 125-63 it didn't.
Items 2. & 3. were all correct.
create it with a text editor
save it in the data folder as wificonfig.json
then use the data sketch upload in arduino IDE
OR
use the upload feature of the web server, navigate to the file, and selected upload it
this is what it looks like
{"mySSID":"FIREFOX","myPASSWORD":"boomchugachug","mySSID_1":"redHot","myPASSWORD_1":"splinter_6"}
from the pdf -
Last edit: brownrb 2022-04-28
OK thanks for that!
I thought that i had the same problem, so i carried out the above changes and the ESP32 connected to my WIFI, however after rebooting the device it will no longer connect to my home WiFi, It will however connect to a mobile hotspot from my smartphone without any issues. any suggestions on what might be the issue?
check that your controllerconfig.h file. has stationmode and readwificonfig enabled
Ensure that the wificonfig.json is correctly named and in the /data folder
Ensure that the wifi credentials in that file are correct
Reprogram the controller
use the sketch upload so that the /data files are updated
Tried all of that on multiple attempts and nothing would work, I'm 100% sure credentials are correct as they were copy and pasted from the router admin page, tried changing SSID and pswd on the router to something very simple to rule out an error in the credentials, but it just will not connect to it, eventually gave up and set up another WiFi access point, it will connect to that without any issues. in the long term I'll need an access point close to where the mySQM+ will be installed anyway so this just pushed me along a bit.
It could be the accesspoint
I say that because I use multiple accesspoints. On one of them, it locks out the mySQM+ controller when I forget to upload the wificonfig file and the controller then keeps rebooting.
Then I correct and upload the file, I cannot reconnect at all. It takes 24 hrs before it will let the controller connect.
Regards
Robert