More of an indirect B4R question. I notice that after about 2 minutes or so of inactivity, the ESP8266 wifi radio seems to go to "sleep". I noticed this with a simple ping test (10.0.0.22 is my ESP8266):
ping 10.0.0.22
Pinging 10.0.0.22 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 10.0.0.22: bytes=32 time=71ms TTL=128
Reply from 10.0.0.22: bytes=32 time=3ms TTL=128
The first few attempts always time out then then it wakes up on the 3rd and subsequent attempts. I can see this in code when connecting to the ESP8266 as it takes several seconds for the initial connection. Subsequent connections (if made within a 2 minute window) are fast.
Obviously this makes some sense as a power savings technique and my app can tolerate a "wake up" period. I was just wondering if there was a way to turn this off or increase the time before the radio goes to sleep. I've tried googling just general ESP8266 discussions on this topic to no avail.
Any help would be appreciated.
ping 10.0.0.22
Pinging 10.0.0.22 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 10.0.0.22: bytes=32 time=71ms TTL=128
Reply from 10.0.0.22: bytes=32 time=3ms TTL=128
The first few attempts always time out then then it wakes up on the 3rd and subsequent attempts. I can see this in code when connecting to the ESP8266 as it takes several seconds for the initial connection. Subsequent connections (if made within a 2 minute window) are fast.
Obviously this makes some sense as a power savings technique and my app can tolerate a "wake up" period. I was just wondering if there was a way to turn this off or increase the time before the radio goes to sleep. I've tried googling just general ESP8266 discussions on this topic to no avail.
Any help would be appreciated.