Stop httpServer #4543
Replies: 1 comment
-
Posted at 2017-11-15 by @gfwilliams
What device are you using? From your post history it seems like you may be using ESP32, in which case I guess there's a small chance that Posted at 2017-11-16 by cmo Thanks for the reply Gordon. Yes it's for an ESP32 (ESP-WROOM-32) with Espruino build 1v94. Here's the full example where I get an error.
And the error message I get
The webserver continues to work before and after the error. I tried this on an ESP8226 and get the same error also. Again, any help is very much appreciated. Posted at 2017-11-16 by opichals Hi @cmo! I am affraid that listen() returns nothing (unlike the node.js' one). I have submitted a new bug for this. In the meantime the code would need to look as follows:
Posted at 2017-11-16 by @gfwilliams It's fixed now. But PLEASE - there's a massive heading right at the top of the forum. This bit of the forum is for official boards ONLY. There's an ESP32 forum here: http://forum.espruino.com/microcosms/1086/ It may seem petty but I support myself purely off of Espruino board sales - and as a way to convince people to buy my boards I offer support to them on these sections of the forum. Posted at 2017-11-16 by opichals Thank you @gfwilliams, that was fast! :) Posted at 2017-11-16 by cmo Thank you. I agree, I put this in the wrong forum. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-11-15 by cmo
Hello,
Is there an event to turn off an http server?
This doesn't seem to work even though it looks documented (httpSrv class):
Any help is appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions