All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.hypfvieh.paulmann.features.BluetoothDevicePasswordFeature Maven / Gradle / Ivy

Go to download

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