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

Network timeout #15

Open
blackrockcitynv opened this issue Jul 16, 2018 · 5 comments
Open

Network timeout #15

blackrockcitynv opened this issue Jul 16, 2018 · 5 comments

Comments

@blackrockcitynv
Copy link

Code seems stable but when the node connects without artnet data being sent it renews its lifetime counter for 20:00 if i send artnet data the timer never renews and eventually the unit disconnects and reboots. If I ping the unit then the timer stays live and connection stays stable. Do you know why it does this?

@rstephan
Copy link
Owner

Sorry, was a bit busy.
I don't know the issue. Maybe a problem with you WiFi access-point? A energy savings option?
What is 'lifetime counter' for you? Is it in your router or the ArtNet software?

@blackrockcitynv
Copy link
Author

Im using an Alfa dual band usb adapter and the realtek software for using as an ap shows the lifetime counter it looks like it pings the ips somehow and resets if it sees it as live

@rstephan
Copy link
Owner

With this setup, energy savings settings are more likely than before. But, it is just a guess.

@smcd253
Copy link

smcd253 commented Aug 14, 2020

I have also been experiencing this problem. I have multiple nodes running this code and they all reset at around 20 min. Is there a way to disable this counter and/or set it to infinity?

@vepkis
Copy link

vepkis commented Jan 9, 2023

I solved this in the following way:

`// connect to wifi – returns true if successful or false if not
bool ConnectWifi(void)
{
bool state = true;

WiFi.begin(ssid, password);
Serial.println("");
Serial.println("Connecting to WiFi");

// Wait for connection
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");

Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());

return state;
}`

The modification is not very clean. Surely this function can be improved.

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

4 participants