Iād just add that the code above will most likely offend the rate limit for publishing of 1/s.
So add a delay(1000)
at the end of loop
And to get RSSI of not connected networks, you might like to have a look here
List Discovered Wifi Networks
I took the liberty to add this to the code above