Check if Wi-Fi is connected to AccessPoint in python

I am using a raspberry pi to transfer udp packets over wifi to a local udp server. I only need to transfer data if the RasPi is connected to an access point (no internet connection required). Network Connection Test describes how to test your Internet connection, which will take longer than testing your local connection. Is there a way in python to check if a device is connected to an access point?

+3


source to share





All Articles