Didn't safe my wifi settings

Hello,

i fill out this parameters:

#define mqtt_server "192.168.1.17"
#define mqtt_user "your_username" // not compulsory only if your broker needs authentication
#define mqtt_password "your_password" // not compulsory only if your broker needs authentication
// Update these with values suitable for your network.
#define wifi_ssid "wifi_name"
#define wifi_password "password"

but when i start i got this message:

mounting FS...
mounted file system
*WM: Adding parameter
*WM: server
*WM: Adding parameter
*WM: port
*WM: Adding parameter
*WM: user
*WM: Adding parameter
*WM: pass
*WM: Adding parameter
*WM: name
*WM: Adding parameter
*WM: topic
*WM: 
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Waiting for connection result with time out
*WM: Connection timed out
*WM: Connection result: 
*WM: 0
*WM: 
*WM: Configuring access point... 
*WM: OpenMQTTGateway
*WM: your_password
*WM: AP IP address: 
*WM: 192.168.4.1
*WM: HTTP server started

so it didn’t use my wifi settings. How can i solve the problem?

if i uncomment

//#define ESPWifiManualSetup true

i got this error message:

main:1508:31: error: 'setup_wifimanager' was not declared in this scope
         setup_wifimanager(true);
                               ^
exit status 1
'setup_wifimanager' was not declared in this scope

Hello,

This issue is corrected on the development branch:

or

You can use wifi manager:

thank you.

the problem was, that i use tree mqtt broker on my rip

You finaly used wifi manager or the manual setup ?

i try to use the manual setup with User_config.h file but it didn’t work :frowning:

now it lost the wifi connection and i have to save the wifi setting again :frowning:

why doesn’t it work with manual settings?
why it lost the wifi connection?

MQTTtoIR value || raw || datasring ok
raw
830,412,828,1254,402,446,800,418,402,418,404,1658,830,414,1250,412,404,32270,828,412,830,1252,404,444,802,414,432,388,408,1656,828,440,1222,414,404

Exception (28):
epc1=0x4022e924 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3fff0a30 end: 3fff0f30 offset: 01a0
3fff0bd0:  00000000 000f5547 3ffef9c8 00000030  
3fff0be0:  00000000 00000000 00000000 00000000  
3fff0bf0:  00000000 3fff0c20 00000001 4020aa04  
3fff0c00:  3fff574a 4010523b 3fff1670 40208a48  
3fff0c10:  00000022 00000000 00000093 00000000  
3fff0c20:  00000001 00000000 3fff4350 00000008  
3fff0c30:  00000001 00000000 00000014 3ffef297  
3fff0c40:  3fff43e9 3ffef270 3fff0c60 4020b77f  
3fff0c50:  40226978 3fff0c60 00000200 00000028  
3fff0c60:  3fff0c50 3fff0c68 00000000 00000000  
3fff0c70:  3fff434c 4023ca37 00000002 00000000  
3fff0c80:  3fff4350 00000008 00000000 3ffed018  
3fff0c90:  00000000 3ffef260 000f5695 4020a037  
3fff0ca0:  3fff298c 00000000 00000020 000000ff  
3fff0cb0:  0000005c 00000001 40104afe 3ffeda48  
3fff0cc0:  00000005 00000000 00000020 401017b2  
3fff0cd0:  3ffe9885 40104bb3 3ffed310 00000100  
3fff0ce0:  401024c9 3ffed310 40104afe 3ffeda00  
3fff0cf0:  00000005 00000000 00000020 401017b2  
3fff0d00:  00000005 00000000 00000020 401017b2  
3fff0d10:  00000000 00000000 00000020 401017b2  
3fff0d20:  3ffe9880 40104b98 3ffed158 401017b2  
3fff0d30:  00000001 40103dbb 3ffeda00 4010269a  
3fff0d40:  4010421e 00000000 00000000 4010269a  
3fff0d50:  00000000 3be89b4c 40102ada 00000100  
3fff0d60:  40103d02 0000001d 7fffffff 00000000  
3fff0d70:  0000011d 00000080 00000000 00000001  
3fff0d80:  40102b77 00080000 00000000 4000050c  
3fff0d90:  00000000 40102874 00000000 4000050c  
3fff0da0:  3fffc278 40102874 3fffc200 00000022  
3fff0db0:  3fff0dc0 00000000 0000001f 40105495  
3fff0dc0:  4020bfd9 00000030 00000010 ffffffff  
3fff0dd0:  4020bfcc 00003a98 000015a6 3ffefb14  
3fff0de0:  00000020 00000020 00000000 40100c8d  
3fff0df0:  3ffefb14 40220737 00000082 401009ac  
3fff0e00:  00000000 00000000 3fff149c 3ffef297  
3fff0e10:  0000009d 00000015 3ffef8a4 4021f5c4  
3fff0e20:  c025d463 3fff0e80 3fff0e80 4021f981  
3fff0e30:  3ffefb14 00000658 00000658 401009ac  
3fff0e40:  0000009d 3ffef270 3fff0e80 40100df0  
3fff0e50:  0000009d 00000001 0000002c 3ffef297  
3fff0e60:  3fff0c50 3fff43e9 3fff43e4 40100b0a  
3fff0e70:  00000002 3ffef270 3fff434c 4020b81e  
3fff0e80:  00000000 00000000 00000000 00000000  
3fff0e90:  3fff0ec0 00000001 3ffef660 00000026  
3fff0ea0:  000f5697 3ffef660 3ffef260 40225988  
3fff0eb0:  000f5697 3ffef660 3ffef260 4020c114  
3fff0ec0:  40252202 000f5697 00000000 00000001  
3fff0ed0:  00000002 00000005 3ffef264 000000c8  
3fff0ee0:  3fff4ebc 4020cae8 000f5697 3ffef9c8  
3fff0ef0:  00000000 3ffef260 000f5697 4020b4f9  
3fff0f00:  00000000 00000000 00000001 402212fd  
3fff0f10:  3fffdad0 00000000 3ffef998 40221388  
3fff0f20:  feefeffe feefeffe 3ffe861c 40100e4d  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v951aeffa
~ld
mounting FS...
mounted file system
reading config file
opened config file
{"mqtt_server":"192.168.*.*","mqtt_port":"*","mqtt_user":"*","mqtt_pass":"*","mqtt_topic":"home/","gateway_name":"OpenMQTTGateway"}
parsed json
*WM: Adding parameter
*WM: server
*WM: Adding parameter
*WM: port
*WM: Adding parameter
*WM: user
*WM: Adding parameter
*WM: pass
*WM: Adding parameter
*WM: name
*WM: Adding parameter
*WM: topic
*WM: 
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Using last saved values, should be faster
*WM: Waiting for connection result with time out
*WM: Connection timed out
*WM: Connection result: 
*WM: 6
*WM: 
*WM: Configuring access point... 
*WM: OpenMQTTGateway
*WM: your_password
*WM: AP IP address: 
*WM: 192.168.4.1
*WM: HTTP server started

did you tried with the last development branch as suggested?

yes, i use OpenMQTTGateway v0.9.3

If you take the last development branch there is a correction that you don’t have on v0.9.3.

Hello, Did you sorted it out?