.mac R/O Property
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: |
Details
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 "0.0.0.0.0.0" 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.