nodemcu v2 espruino wifi problem #6067
Replies: 1 comment
-
Posted at 2018-12-21 by @MaBecker hi @michal, wifi tries to reconnect if connection is lost. fs is to large for ESP8266 boards, use Storage and same name or use a numeric like 00000001 to 99999999. for numeric name use esptool.py to dump save area to file and analyse with strings or hexdump. Posted at 2018-12-21 by Michal Hi @MaBecker Thank you very much for your precise reply. I added log functionality to my application using recommended by you Storage module. Thanks to it when I'm connecting using telnet I'm able to:
Attachments: Posted at 2018-12-21 by @MaBecker Nice, thanks for sharing, will run some test and let you know how it works on my side There are some technical details you might like to add log too:
Posted at 2018-12-21 by Michal Thanks. I will add this memory info to my log and additionally timestamp at the beginning of each line.
Posted at 2018-12-24 by @MaBecker here is my suggestion: extend your header like this to be sure that the client is not blocking a socket
You can also send a tiny page to let the browser know that there is no need to call for a favicon.
Hope this is helpful to make your Espruino app more stable and think about how cool it would be to have a label (Donated/Patreon) below your tag ;-) Posted at 2018-12-24 by @MaBecker Here is the reason why 'close' is helpful when connection via browser printing details on Espruino site for calling by browser
I realized this when trying to upload the code again and got a port in use error this is how curl handles it:
Posted at 2018-12-28 by @MaBecker missed Posted at 2019-01-21 by @gfwilliams As of cutting edge builds or Espruino 2v02 (when released) Connection:close is added automatically |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-12-20 by Michal
Hi, I have a small app with rest api deployed on NodeMcu with Espruino. App works fine and is able to successfully reconnect NodeMcu to wifi router after turning router off and on. I tested it several times. I use console.log to log all important information. The problem is that after some time (for example one day) NodeMcu loses wifi connection and is not able to reconnect to wifi. I would like to find the root cause of this problem. When the problem occurs I'm not able to connect to NodeMcu using telnet. I need to disconnect usb power supply and connect my laptop to this board. Is it possible to read/display somehow logs written earlier using console.log? If not maybe I could use some physical file instead of console.log for logging information and display its content later? Is it possible to use "fs" module?
Beta Was this translation helpful? Give feedback.
All reactions