GoBe

interface GoBe

Interface for operating with wristband.

Properties

Link copied to clipboard

Returns true if connection is started (connect was called and disconnect wasn't).

Link copied to clipboard
abstract val isReady: Single<Boolean>

Returns Single that emits true if wristband is ready for work and false otherwise.

Link copied to clipboard
abstract val sensorId: Single<String>

Returns Single that emits sensor id or empty string if sensor id is unknown.

Functions

Link copied to clipboard
abstract fun bloodPressureMeasurementProgress(): Observable<Int>

Return Observable that emits progress of blood pressure measurement from 0 to 100.

Link copied to clipboard
abstract fun changePin(pin: String): Completable

Set new PIN code for wristband.

Link copied to clipboard
abstract fun connect(): Completable

Try to connect to default wristband.

Link copied to clipboard
abstract fun disconnect(): Completable

Disconnect from wristband.

Link copied to clipboard
abstract fun forget(): Completable

Forget previously saved wristband.

Link copied to clipboard
abstract fun get(): Single<HealbeDevice>

Get default wristband.

Link copied to clipboard
abstract fun measureBloodPressure(): Single<BloodPressure>

Measure blood pressure.

Link copied to clipboard
abstract fun observe(): Flowable<HealbeDevice>

Observe default wristband.

Link copied to clipboard
abstract fun observeBleState(): Observable<BLEState>

Returns Observable that emits state of bluetooth connection.

Link copied to clipboard
abstract fun observeConnectionState(): Observable<ClientState>

Returns Observable that emits states of connection to wristband.

Link copied to clipboard

Returns Observable that emits states of firmware update.

Link copied to clipboard
abstract fun observeFwUploadProgress(): Observable<Int>

Returns Observable that emits progress of firmware uploading to the wristband.

Link copied to clipboard
abstract fun requestPuk(): Completable

Request server to send PUK code to the user.

Link copied to clipboard
abstract fun reset(): Completable

Reset all user data from wristband.

Link copied to clipboard
abstract fun resetPin(puk: String): Completable

Set PIN code to default (000000)

Link copied to clipboard
abstract fun rotateScreenTo0(): Completable

Rotate screen to 0 degree.

Link copied to clipboard
abstract fun rotateScreenTo180(): Completable

Rotate screen to 180 degree.

Link copied to clipboard
abstract fun scan(): Observable<HealbeDevice>

Start search for wristbands.

Link copied to clipboard
abstract fun set(device: HealbeDevice): Completable

Save default wristband.

Link copied to clipboard
abstract fun setActive(active: Boolean): Completable

Set default wristband active.

Link copied to clipboard
abstract fun setName(newName: String): Completable

Set name of the wristband.

Link copied to clipboard
abstract fun setPin(pin: String): Completable

Set pin for default wristband and connection.

Link copied to clipboard
abstract fun startFirmwareUpdate(): Completable

Start firmware update.

Link copied to clipboard
abstract fun stopFirmwareUpdate(): Completable

Stop firmware update.

Link copied to clipboard
abstract fun toggleScreenOrientation(): Completable

Rotate screen on 180 degree.