Skip to content

Get 'AP SSID' in bash for pi TFT display #1247

Pinned Answered by billz
done7k asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. You can fetch the SSID like so (substitute wlan0 for your AP interface, if different):

iw dev wlan0 info | grep -Po '(?<=ssid ).*'

For the number of connected AP clients, a count of the active leases will do the trick:

cat /var/lib/misc/dnsmasq.leases | wc -l 

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@done7k
Comment options

@billz
Comment options

Answer selected by done7k
Comment options

You must be logged in to vote
1 reply
@billz
Comment options

Comment options

You must be logged in to vote
1 reply
@billz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants