I\'m reading the Wi-Fi connection of my Raspberry Pi, using the iwgetid command.
iwgetid
The output is:
wlan0 ESSID:"iPhone"