Package com.blukii.sdk.config
Klasse SmartPen
java.lang.Object
com.blukii.sdk.config.Blukii
com.blukii.sdk.config.SmartPen
This class represents a blukii of type Smart Pen and is the main controller class for
connection based communication with blukii devices of that type.
This class contains additional requests that are specific for blukii Smart Beacons.
To quick start please follow the instructions of the quick start documentation of base
class Blukii
Note: You can check the blukii device type with Blukii.isSmartPen().
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intSmartPen state OFFstatic final intSmartPen state SENDVon Klasse geerbte Felder com.blukii.sdk.config.Blukii
FIRMWARE, HARDWARE, SETTING_BLUETOOTH_TXPOWER_VALUES_003, SETTING_BLUETOOTH_TXPOWER_VALUES_007, SETTING_BLUKII_BATTERY_TYPE_2700, SETTING_BLUKII_BATTERY_TYPE_3000, SETTING_BLUKII_BATTERY_TYPE_3300, SETTING_BLUKII_BATTERY_TYPE_3600, SETTING_BLUKII_CONNECTED_EVENT_NOTIFY, SETTING_BLUKII_CONNECTED_EVENT_OFF, SETTING_BLUKII_CONNECTED_EVENT_ON, SETTING_BLUKII_LED_COLOR_BLUE, SETTING_BLUKII_LED_COLOR_GREEN, SETTING_BLUKII_LED_COLOR_RED, SETTING_BLUKII_LED_EVENT_BEACON_MODE, SETTING_BLUKII_LED_EVENT_BUTTON_PUSHED, SETTING_BLUKII_LED_EVENT_ENERGY_SAVE_MODE, SETTING_BLUKII_LED_EVENT_SETTINGS_MODE, SETTING_BLUKII_LED_EVENT_SPECIAL_EVENT_CALIBRATION, SETTING_BLUKII_SYSTEM_RESET_FACTORY_DATA_RESET, SETTING_BLUKII_SYSTEM_RESET_FACTORY_DATA_UPDATE, SETTING_BLUKII_SYSTEM_RESET_FACTORY_FLASH_RESET, SETTING_BLUKII_SYSTEM_RESET_FACTORY_IMAGE_RESET, SETTING_BLUKII_SYSTEM_RESET_REBOOT -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidobserveSmartPenValues(NotificationListener notificationListener) Observes the Smart Pen Value notifications.voidreadPenState(ResponseListener responseListener) Reads the Smart Pen operation state.voidwritePenState(int state, ResponseListener responseListener) Writes the Smart Pen operation state.Von Klasse geerbte Methoden com.blukii.sdk.config.Blukii
check, check, connect, connect, disconnect, getBluetoothDevice, getBluetoothDeviceName, getBlukiiData, getConnectionSettings, getLedEventsSelection, getSubType, getType, isReady, isSensorBeacon, isSmartBeacon, isSmartPen, observeConnectedEvents, observeCurrentConnectionParameter, readAdvertisingChannels, readAoaSettings, readBatteryLevel, readBatteryType, readBlukiiCommand, readConnectedEvents, readConnectionParameterDelay, readCurrentConnectionParameter, readDelayedConnectionParameter, readEnergySaveSettings, readInitialAdvertisingInterval, readLedEvents, readRssi, readRTC, readSecureConnect, readStateCounter, readSystemTimeouts, readTemperature, readTxPower, requestMtu, resetStateCounter, syncRTC, updateData, updateFirmware, updateFirmware, writeAdvertisingChannels, writeAoaSettings, writeBatteryType, writeBlukiiCommand, writeConnectedEvents, writeConnectionParameterDelay, writeCurrentConnectionParameter, writeDelayedConnectionParameter, writeEnergySaveSettings, writeInitialAdvertisingInterval, writeLedAction, writeLedEvents, writeSecureConnect, writeSecureKey, writeSystemReset, writeSystemTimeouts, writeTemperature, writeTxPower
-
Felddetails
-
SETTING_SMARTPEN_STATE_OFF
public static final int SETTING_SMARTPEN_STATE_OFFSmartPen state OFF- Siehe auch:
-
SETTING_SMARTPEN_STATE_SEND
public static final int SETTING_SMARTPEN_STATE_SENDSmartPen state SEND- Siehe auch:
-
-
Methodendetails
-
observeSmartPenValues
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void observeSmartPenValues(@NonNull NotificationListener notificationListener) Observes the Smart Pen Value notifications.If Smart Pen value is sent then
NotificationListener.onNotify(ResponseData)is called.ResponseData:NotificationListener.onNotify(ResponseData):BlukiiDataItem Type-SmartPenValues- Parameter:
notificationListener-NotificationListeneron which callbackonNotifyis called- Siehe auch:
-
readPenState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readPenState(@NonNull ResponseListener responseListener) Reads the Smart Pen operation state.ResponseData:ResponseListener.onResponse(ResponseData):BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writePenState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writePenState(int state, @NonNull ResponseListener responseListener) Writes the Smart Pen operation state.Supported values:
SETTING_SMARTPEN_STATE_OFF: Smart Pen is off.SETTING_SMARTPEN_STATE_SEND: Smart Pen is sending data:SmartPenValuescan be received viaobserveSmartPenValues(NotificationListener).
ResponseData:BlukiiDataItem Type-Integer- Parameter:
state- Smart Pen operation stateresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-