waitForValueChange
Waits for the value of the characteristic to change.
This method suspends until the value of the characteristic changes. If the notifications are not enabled, it will enable them automatically. Use setNotifying to disable notifications or indications.
Return
The new value of the characteristic.
See also
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.