http server doesnt listen on 80 port #6238
Replies: 1 comment
-
Posted at 2019-05-21 by DrAzzy I found that I had to wait a few seconds after startup to do the createServer() call - try putting that in a 5 second timeout. Posted at 2019-05-21 by Bunny Please send me an code example. Posted at 2019-05-21 by @MaBecker remove save() from function onInit(); If you want to save your code add this as last line:
Posted at 2019-05-22 by Bunny Thanks a lot by the answers. Its works! Posted at 2019-05-22 by @allObjects @MaBecker, #4 is nice alternative to my suggestion of having this as last line
and remove it before the last upload that I then finish with a I came up with my suggestion in order to write to the flash only when I need to keep wear and tear as low as possible... but this show only the wear-phoby of mine... Posted at 2019-05-22 by @MaBecker this is what i like to do
Posted at 2019-05-22 by @MaBecker or like this ;-)
Posted at 2019-05-22 by @allObjects I see. You can then add even more testing-only things because you already have the testing variable available... and you change the set value before the 'last' upload after all is just working fine. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-05-21 by Bunny
Hi,
Please help me with this trouble, i tried to start an http server on a ESP8266 (Nodemcu v3) with this code:
But its doesnt start the http server on port 80. When connect to telnet at port 23, and run
httpServer.createServer(onRequest).listen(80);
its works. What's happening with httpServer and why doesnt run at start?Thanks a lot
Bunny
Beta Was this translation helpful? Give feedback.
All reactions