changePin

abstract fun changePin(pin: String): Completable

Set new PIN code for wristband.

PIN code is string with numbers and length of 6.

If there is no default wristband then GoBeNotSetException will be emitted.

If wristband state isn't connected then ConnectionNotStarted will be emitted.

If PIN code is wrong then WrongPINCodeException will be emitted.

NOTE: User must be valid.

Return

Completable that completes when pin has been updated

See also

Parameters

pin

new PIN code