How to keep Wifi from timing out / multiple Curl calls example / wifi: pm start, type:0
Posted: Sun Jul 23, 2017 3:53 am
I'm trying to use curl to make a restful request every minute or so ( though for testing I've calling every 5 seconds). The issue I'm running into is that everything works fine until this pops up:
I (12667) wifi: pm start, type:0
Once that message hits, the calls timeout even though the wifi shows connected. The calls continue to timeout for some time and eventually a disconnect event happens:
I (98237) wifi_utils: event_handler - DISCONNECTED EVENT reason: 2 (WIFI_REASON_AUTH_EXPIRE)
Does anyone know what is going on? Is there a call that needs to be made to let the wifi know it's still being used or to avoid power-management?
If, not has anyone seen an example that calls curl more than a couple times?
I (12667) wifi: pm start, type:0
Once that message hits, the calls timeout even though the wifi shows connected. The calls continue to timeout for some time and eventually a disconnect event happens:
I (98237) wifi_utils: event_handler - DISCONNECTED EVENT reason: 2 (WIFI_REASON_AUTH_EXPIRE)
Does anyone know what is going on? Is there a call that needs to be made to let the wifi know it's still being used or to avoid power-management?
If, not has anyone seen an example that calls curl more than a couple times?