You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Bluetooth® Smart Library > disconnect

20.3.4 disconnect

peripheral:disconnect()

Disconnects the connection with the peripheral object. The callback provided in connectPeripheral will be called to confirm completion of the disconnect procedure.

Introduced in platform.apiLevel = '2.5'