
com.github.hypfvieh.paulmann.features.BluetoothDevicePasswordFeature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paulmann-bt-lib Show documentation
Show all versions of paulmann-bt-lib Show documentation
Library to control bluetooth actors manufactured by Paulmann GmbH for usage with Paulmann LED stripes.
The newest version!
package com.github.hypfvieh.paulmann.features;
import com.github.hypfvieh.bluetooth.wrapper.BluetoothGattCharacteristic;
public class BluetoothDevicePasswordFeature extends AbstractBluetoothStringValFeature {
private boolean authenticated;
public BluetoothDevicePasswordFeature(BluetoothGattCharacteristic _char) {
super(_char);
}
/**
* {@inheritDoc}
*/
@Override
public String getDefaultValue() {
return null;
}
public boolean authenticate(String _password) {
authenticated = writeString(_password);
return authenticated;
}
public boolean isAuthenticated() {
return authenticated;
}
/**
* {@inheritDoc}
*/
@Override
public FeatureIdent> getFeatureIdent() {
return FeatureIdent.PAULMANN_DEVICE_PASSWORD_FEATURE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy