.disconnect Method

Function:

Causes the BLE interface to terminate the active connection.

Syntax:

bt.disconnect() as accepted_rejected

Returns:

One of accepted_rejected constants:

0 — ACCEPTED

1 — REJECTED

See Also:

---


Details

The bt.enabled read-only property must be 1 — YES for bt.disconnect to be accepted. If there is no Bluetooth connection established, calling bt.disconnect will have no effect.


.disconnect Method

Details