I`m using PICO with the latest firmware (with WIZnet) and 'w5500 lite' module.
So after deploying http-server (even as simple, as in examples), server stops getting requests in a few minutes or immediately, if i ping server or make a request from another client (browser fires ERR_CONNECTION_REFUSED, and no requests can be registered in log of IDE). In this state however server can fire requests (i can control ethernet relay from IDE) and after each second outgoing request server can again get client requests... i attached some screenshots with .getIP() and .getStatus() information along with some client requests. Could you please tell if it's possible to make server functioning stably?
Does this happen after a certain number of HTTP requests to the server? Or do you think it's just a random event?
I can try and look into this, but I'm pretty busy at the moment so I'm not sure it'll get done in the next two weeks I'm afraid. I've filed an issue at https://github.com/espruino/Espruino/issues/2321 to keep track of it though
All I can suggest for now I'm afraid is to keep doing HTTP requests every few seconds, and that might bring it back to life
thank you for reply.
Theres no rush, so ill be waiting...
As far as i can see it doesnt depend on number of requests, but on different clients. I can request server for, lets say dozen of times, reloading the same page and everything works fine including fetch requests, but then should i request server from smartphone or ping it, server stops getting requests. Or i can make just one request after code is uploaded and on the second request from another client or after ping, server wont get requests. And in either way in two consequent requests from the server its again possible to get requests. It looks like this: first request from server reaches host (ethernet relay) but dont get answer from it, on second request from server its possible to get answer from host, and thus possible to request server to serve some page...
s no rush, so i
t depend on number of requests, but on different clients. I can request server for, let
t get requests. And in either way in two consequent requests from the server it
t get answer from it, on second request from server it
Interesting, thanks! What happens if you close the web browser that you were making the request on before you make requests with the new one?
I wonder if maybe the web browser is leaving the connection open between requests? I believe Espruino usually asks the browser to close the connection, but if it doesn't that could cause a lot of problems
It loses connection after browser reloading, it also loses connection after a short period of time with served page opened. I the same browser session if i close page served by server and reopen it, connection remains active. At all times outgoing messages reached host.
i attached error browser emits when fails to connect server. Also when i cannot reach server via browser, no requests from another server will come through.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem