BSSID (MAC) of near APs for geolocation, location tracking on SPARK CORE

There are a number of old threads on the subject, however things apparently don’t work with the newer system firmware, and there is no function for APs not connected to.
Any ideas?

OK I am done answering this question–after three tries in three different ways!

You can get the BSSID of the AP you are connected to via the WiFi object.

You can scan for APs via the WiFi object’s scan method but that does not return the BSSID for each AP.

If you want to go around the WiFi object, which is there to make things easier to use, and program to the TI CC3000 on a Core directly, then you can get the BSSID, but you will have to build locally from the source after you modify it using gcc. You will need to know what you are doing in order to do that.

2 Likes

I understand your answer to my question is : It is not possible on spark core.

Anyone knows if the WiFi.BSSID() will work after executing connect() with wrong credentials?

No, read this part again–the Core is capable but the simplified software interface presented by the WiFi object is not. You can do it if you learn enough about interfacing to the TI CC3000:

If you want to go around the WiFi object, which is there to make things
easier to use, and program to the TI CC3000 on a Core directly, then you
can get the BSSID, but you will have to build locally from the source
after you modify it using gcc. You will need to know what you are doing
in order to do that.

1 Like