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

20.1.2 removeStateListener

success = ble.removeStateListener(callback)

Removes a registered Bluetooth ® LE state-change listener callback which was previously registered by calling addStateListener.

Parameter

Type

Description

callback

in function

The callback previously registered by calling addStateListener

success

out boolean

True if successful, otherwise false if specified listener was never added

Introduced in platform.apiLevel = '2.5'