Skip to main content

imp.getbssid()

Gets the WiFi access point or router’s BSSID

Availability

Device
DEPRECATED METHOD — DO NOT USE IN NEW CODE

Returns

String — the basestation ID as 12 hexadecimal characters

Description

This method is now deprecated. However, removing it altogether would cause users’ existing code to stop working, so we currently have no plans to do so. The recommended means of gaining the information this method returns is to call imp.net.info().

This method returns the WiFi access point or router’s BSSID as a string of 12 hexadecimal characters. This can be used by your code to identify a particular wireless network.

If WiFi is disabled — by using server.disconnect(), for example — the method returns a string of 12 zeroes.

Note This method has been removed from versions of impOS running on the impC001.