Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work #19

Open
romelemperado opened this issue Aug 8, 2018 · 4 comments
Open

It doesn't work #19

romelemperado opened this issue Aug 8, 2018 · 4 comments

Comments

@romelemperado
Copy link

romelemperado commented Aug 8, 2018

I flashed this code to nodmcu with esp8266 chip and the AP mode doest work. after I connect to ap this error appeared in serial console

r$�l��|��l�|���d�B|������r�B�#�p��n�loN���#�p��ls$r$p�o������l�����bN�|�l���b��no��l���$`����Nn�l`���or������B���l�r��N�b��d��l�����r�l ���n��
s$�l�����#��o�����l��b|����p��{�c��c��on��$no����b�p�#$`�rdp�o������l����c�n�|�l���p��|��n��l��l ����Nn�l`���or������"��l�r��N�c��d��d�����r��{l��o��
setup complete.
r$�l��|��l�|���l�#|������r�#�#�p��o�lon���#�p��l{ls$p�N����$���#o�|�$���p���no��l���$`����no�l ���N{���o�b��l�r��n�c���$��d����r��{l��n��
setup complete.
handlefileread/generate_204
handlefileread/c/
handlefileread/c/
handlefileread/c/
handlefileread/c/
handlefileread/c/
handlefileread/c/
handlefileread/generate_204
handlefileread/
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/c/
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/generate_204
handlefileread/favicon.ico
handlefileread/favicon.ico
handlefileread/favicon.ico

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

ctx: cont 
sp: 3fff0800 end: 3fff0af0 offset: 01a0

>>>stack>>>
3fff09a0:  3ffe8c32 3ffef3a0 3fff09d0 3ffef424  
3fff09b0:  3ffe8c32 3ffef3a0 3fff09dc 4020e5be  
3fff09c0:  3ffe8c32 3ffef3a0 3ffef378 4020cc71  
3fff09d0:  00000000 00000000 00000000 3fff6c54  
3fff09e0:  0000001f 0000000a 3fff17cc 0000000f  
3fff09f0:  0000000a 00000000 3ffef378 4020754c  
3fff0a00:  00000000 00000000 3ffef3bc 3fff26ec  
3fff0a10:  0000000f 00000000 3fffbfdc 0000000f  
3fff0a20:  00000000 3fff43d4 0000000f 00000001  
3fff0a30:  3fff8ab4 0000000f 0000000c 3fffb09c  
3fff0a40:  0000000f 00000003 3fff2dbc 0000009f  
3fff0a50:  0000009f 3fff0aa0 3ffef37c 40209b7c  
3fff0a60:  3ffef3bc 00000000 3ffefad0 4020a324  
3fff0a70:  40107190 00000000 4020aa40 0000000a  
3fff0a80:  00000000 3fff2fec 3ffef378 3ffefabc  
3fff0a90:  00000001 3ffef3a0 3ffef378 4020b84f  
3fff0aa0:  40107190 00000000 00001388 4020d031  
3fff0ab0:  00000000 3fff2fec 40206e88 40207f68  
3fff0ac0:  3fffdad0 00000000 3ffefab5 40207fa2  
3fff0ad0:  3fffdad0 00000000 3ffefab5 4020ef70  
3fff0ae0:  feefeffe feefeffe 3ffefad0 40100710  
<<<stack<<<

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
@tekhedd
Copy link

tekhedd commented Sep 27, 2018

I get the same error with Arduino on an ESP8266 D1 Pro clone in STA mode when fetching wifi.htm.

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

/wifi/list works as expected.

/wifi/rst does an ESP reset but this does not reboot arduino and leaves the device nonfunctional. Recommend using ESP.reset() instead of restart(), even though this is less graceful.

I'm using the esp8266 pre-release (git 2.5.0) code.

@tekhedd
Copy link

tekhedd commented Sep 27, 2018

I strongly suspect your (and my) problem is due to PROGMEM. If you replace the /wifi.htm handler with one that returns a non-PROGMEM char string, the problem should go away.

@LukeTrainor
Copy link

I had this same issue. I fixed it by changing line 9 of PersWiFiManager.cpp to start with

const char* wifi_htm
instead of
const char wifi_htm[]

@tekhedd
Copy link

tekhedd commented Nov 28, 2018

issue gone in v4.0.0, which also appears to have the edit mentioned by @LukeTrainor, and also defaults to non-PROGMEM. Works great. Recommend closing the issue as fixed.

This is definitely the best 8266 wifi config API IMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants