.Mac R/O Property

Top  Previous  Next

Function:

Sets and returns the MAC address of the BLE interface.

Type:

Dot-decimal string

Value Range:

Any valid MAC address, i.e. "0.1.2.3.4.5"

See Also:

Bringing up and enabling the BLE interface

 

 


 

Details

Each WA2000 device comes with its own unique hardcoded Bluetooth MAC. You can use this MAC or set another MAC programmatically.

If you do not write to this property, bt.mac returns 0.0.0.0.0.0 before executing wln.boot. The property returns the hardcoded 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.