android-wisefy icon indicating copy to clipboard operation
android-wisefy copied to clipboard

Real time updates for connection

Open sudansh opened this issue 2 years ago • 1 comments

Thank you for creating an issue to improve this library! Please check Please check the current issues to make sure that the improvement isn't already being worked on.

Description Currently all the wifi operations provide one time results. I would suggest providing real time updates of the result. For example getCurrentNetwork() : CurrentNetworkData? could be made getCurrentNetwork() : Flow<CurrentNetworkData?> so that user can get real time updates if the current network is changed

Reason I have a wifi screen same as Android default wifi screen and I would like to get a list of wifi networks. I could get them one time with the call getNearbyAccessPoints but if there is a new wifi network after some time I would have to call the method again.

Acceptance Criteria a method can be added as below getCurrentNetwork() : Flow<CurrentNetworkData?> getNearbyAccessPoints(filterDuplicates: Boolean): Flow<List<AccessPointData>>

sudansh avatar Aug 12 '21 10:08 sudansh

Just wanted to acknowledge this ticket since it's been a while since I've been able to respond and work on WiseFy...I will look into live updates, but my concern is that Android throttles most applications that request network information too frequently. I will need to do some more research and see what is safely possible and come up with a plan. Thanks!

isuPatches avatar Dec 18 '21 23:12 isuPatches