.enable Method

Function:

Instructs the WA2000 Wi-Fi/BLE add-on module to turn the BLE radio on. This is an asynchronous method — it returns control back to the app immediately.

The on_bt_event(PL_BT_EVENT_ENABLED) handler is generated when the radio turns on.

Syntax:

bt.enable()

Returns:

---

See Also:

Bringing Up and Enabling the BLE Interface


Details

This method will only have effect if the WA2000 is booted (wln.boot was called and wln.enabled = 1 — YES) and if the BLE radio is currently off (bt.enabled = 0 — NO).

This method has no effect on the GA1000.


.enable Method

Details