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

UDP packet not sent before deepsleep #658

Closed
gdpl opened this issue Aug 5, 2015 · 1 comment
Closed

UDP packet not sent before deepsleep #658

gdpl opened this issue Aug 5, 2015 · 1 comment

Comments

@gdpl
Copy link

gdpl commented Aug 5, 2015

I code like this:

void loop ()
....

WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(100);
}
udp.beginPacket(dataServer, 555);
udp.write(packetBuffer, (bpos));
udp.endPacket();
delay(1000);
ESP.deepSleep(30000000)
} //end of loop

Everything was OK before one of my last update (due ADC_MODE(ADC_VCC) did not compile).

Now module connects to wifi, udp.write and udp.endPacket return proper values (1 and buffersize), but no data are received by router and before module goes sleep.

If I change delay to 2000ms, watchdog restarts module before it goes deepsleep and ... udp packet is received properly.

@igrr igrr mentioned this issue Aug 7, 2015
@Links2004
Copy link
Collaborator

please retry in last release,
If it still a problem feel free to reopen.

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

2 participants