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'