ReactiveWiFi icon indicating copy to clipboard operation
ReactiveWiFi copied to clipboard

Question about behavior on observeWifiAccessPointChanges(context)

Open dokiKit opened this issue 7 years ago • 4 comments

What will be the expected behavior when the ap is disconnected? Will it fires emission with a null Wifi info object?

Much Thanks!

dokiKit avatar Jul 06 '18 07:07 dokiKit

I have tested it, seems that it will not emit if the ap is disconnected

dokiKit avatar Jul 06 '18 09:07 dokiKit

Hi,

I was AFK. I suppose you meant "phone is disconnected". I don't know what "app is disconnected" means in this context. You can clarify that. I think the library will not emit any "null" info when the phone is being disconnected. Moreover, it should scan networks even if the phone is not connected to any WiFi network.

Regards, Piotr

pwittchen avatar Jul 09 '18 11:07 pwittchen

Hi, I refer ap as access point. I think it maybe reasonable for the library to emit something when disconnecting from an access point, so one can be notified and take action base on that emission.

Thanks.

dokiKit avatar Jul 10 '18 02:07 dokiKit

I think it maybe reasonable for the library to emit something when disconnecting from an access point, so one can be notified and take action base on that emission.

@dokiKit I've made another library, which does that, because it's a separate responsibility. Some people want to monitor access points and others want to monitor connectivity only. Check it at: https://github.com/pwittchen/ReactiveNetwork. It's also based on RxJava, so you can make an interaction between different streams from various events coming from these two libraries (or any other RxJava stream).

pwittchen avatar Jul 10 '18 07:07 pwittchen