I have 2 Rasberry’s in or around my house. Both are Raspberry 3. Both are connected via Wlan0 and both showing me the WLAN-strength in the display with the command:
iwconfig wlan0 | grep Signal | sed -n -e 's/^.*Signal level.\([0-9]*\).*/\1/gp'
The first raspberry is showing me the real output i.e. 57% and the other shows me “Unknown%” and I can’t find where it goes wrong.
I also tried:
iwconfig wlan0 | grep Signal | sed -n -e 's/^.*Signal level.\\([0-9]*\\).*/\\1/gp'
with the same result!
Can someone help?