I searched the forum and found many examples on checking if the device is connected to internet. In my case, I need to check if WiFi is connected but it could be to a hotspot or printer and so there may not be internet connectivity.
What is the proper way to do this?
What is the proper way to do this?