Replies: 2 comments 8 replies
-
This is a known issue (see #2246) and we're actively working on resolving it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello @yanshay! Could you try with these changes: #2251 if it makes things better? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing an async app using
embassy
andasp-wifi
, and keep having issues with getting IP.Connecting to wifi is almost always working but getting an IP isn't consistent.
Sometimes I get it quickly, sometimes I just don't even if waiting for minutes and need to reset the device to try again.
Sometimes after a single reset I get the IP, sometimes it takes several resets to get it working.
I have all kinds of logs going on (e.g. I wait for the IP on two tasks like in the examples and issues log from the waiting loop with the timer) and I noticed that depending on order of logs (coming from the two different tasks) I can even predict when I'll have issues with getting the IP as if it depends on the tasks scheduling order or something like that.
Maybe checking on IP on one of the tasks, before wifi is even connected could cause such issues?
Once I get the IP all networking works flawlessly.
I placed the router about 1.5 meter from the device so it's not low reception, and I don't have such issues on any other device.
Also, several months ago I developed a with embassy and esp-hal on the same device, only much older versions of both. I didn't have such issues back then.
Beta Was this translation helpful? Give feedback.
All reactions