I'm trying to find a way to run a script in python that "listens" to wifi connection status and will execute a certain function that I made when the computer gets connected to wifi.
The function will connect to a server socket and send some information to it.
Does anyone have any idea how to implement this?
Thanks!