Ok cool, but it seems a little complicated… it would be very arduino-like to wrap this in a
getRSSI(); method that just returned the RSSI of the connected AP in percentage. Or maybe an optional way to return the array of RSSI’s for APs that were found in the scan… just in case someone wanted to try to connect to another AP.
As I understand this still isn’t the SNR as it’s not in -dBm and not a measure of power, but it’s definitely better than nothing. Looking at the params for this it seems like it can be (should be) tweaked based on what type of antenna you are using. You’d probably need to calibrate this value based on the final Spark Core design with chip antenna and with some kind of standard omnidirectional antenna connected via uFL. Maybe someone with some calibrated RF equipment can offer some help there.