Open sudansh opened 3 years ago
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!
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 madegetCurrentNetwork() : Flow<CurrentNetworkData?>
so that user can get real time updates if the current network is changedReason 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>>