I’m working on a new project, a low power foto-webcam. The idea come from http://www.foto-webcam.eu website, they are installing this systems in remote area from many years. However, they use to leave the system always turned on, instead I want to turn the system ON only when the camera have to take the picture.
I’m doing this with a STM32L0 evaluation board and a Mosfet to turn the system ON/OFF.
I will write further details and post my script.
You can check if your interface is connected to an AP with
iw wlan0 link
and the output is something like this
SSID: blabla freq: 2432 RX: 196892 bytes (1278 packets) TX: 19107 bytes (125 packets) signal: -35 dBm tx bitrate: 57.8 MBit/s MCS 5 short GI bss flags: short-preamble short-slot-time dtim period: 0 beacon int: 100
This is the best tutorial that I have found