setNotifying

abstract suspend fun setNotifying(enabled: Boolean)

Sets notifications or indications state, depending on the characteristic's properties.

Note, that calling suspend or waitForValueChange will enable notifications automatically.

Throws

if the operation failed.

if the characteristic has been invalidated due to disconnection of service change event.

if the implementation fails, see cause for a reason.