.mac R/O Property


Sets and returns the MAC address of the BLE interface.


Dot-decimal string

Value Range:

Any valid MAC address, i.e. ""

See Also:

Bringing up and enabling the BLE interface


Each WA2000 comes with its own unique hard-coded Bluetooth MAC. You can use this MAC or set another MAC programmatically.

If you do not write to this property, bt.mac returns before executing wln.boot. The property returns the hard-coded MAC address of the WA2000 after wln.boot is called (and wln.enabled becomes 1 — YES).

To set a different Bluetooth MAC, assign a new value to this property before calling wln.boot. The value of the property cannot be changed after the wln.boot method has been invoked.