- Mon Jun 03, 2019 6:21 pm
#82616
The post is talking about how to speed up connection to a wifi AP - it's not just UDP but all wifi in general.
If you're trying to save as much power as possible then you want to spend as short a time as you can in connecting to your wifi AP, and there are numerous things you can do to speed it up. In this post they talk about explicitly setting the IP address during connection, but there are a number of other things you can do to speed up connection too:
- saving the BSSID and channel of the last known AP removes a channel and AP scan which saves a lot of time.
- using a static IP address saves time negotiating DHCP
In this case, the poster has also identified that disabling the DHCP client significantly improves wifi connection time.
I posted some code in the Advanced section showing how I try to save time. Unfortunately I can't use a static IP address, and the SDK doesn't give access to the DHCP lease time - if I had this then I would also cache the last known IP address and reuse it.