Klasse SmartBeacon
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: Sensor Beacons are also handled with this class. You can check the
type via the type check methods: Blukii.isSmartBeacon() and Blukii.isSensorBeacon()
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intSmart Beacon frame advertising type: connectable.static final intSmart Beacon frame advertising type: not connectable, no scan response.static final intSmart Beacon frame advertising type: not connectable, with scan response.static final intSmart Beacon event alternation mode: MAJOR RESETstatic final intSmart Beacon event alternation mode: MAJOR RESET LEDstatic final intSmart Beacon event alternation mode: MAJOR RESET MAXstatic final intSmart Beacon event alternation mode: MAJOR RESET MAX LEDstatic final intSmart Beacon event alternation mode: MINOR CONTINUOUSstatic final intSmart Beacon event alternation mode: MINOR RESETstatic final intSmart Beacon event alternation mode: MINOR RESET MAXstatic final intSmart Beacon event alternation mode: OFFstatic final intSmart Beacon event alternation mode: UNUSED.static final intSmart Beacon event trigger: Button.static final intSmart Beacon event trigger: Off.static final intSmart Beacon event trigger: Ripline.static final intSmart Beacon event trigger: Sensor.static final intSmart Beacon event trigger: Timer.static final intSmart Beacon frame: Eddystone TLM.static final intSmart Beacon frame: Eddystone UID.static final intSmart Beacon frame: Eddystone URL.static final intSmart Beacon frame: iBeacon.static final intSmart Beacon frame: InfoBeacon Acceleration.static final intSmart Beacon frame: InfoBeacon Environment.static final intSmart Beacon frame: InfoBeacon Magnetometer.static final intSmart Beacon frame: No frame.static final intSmart Beacon frame: Specialstatic final intSmart Beacon frame advertising type: connectable.static final intSmart Beacon frame advertising type: not connectable, no scan response.static final intSmart Beacon frame advertising type: not connectable, with scan response.static final intSmartBeacon Accelerometer Range: 16g Note: only supported for sensor typeSensorType.ACCELEROMETER_LIS2DUstatic final intSmartBeacon Accelerometer Range: 2gstatic final intSmartBeacon Accelerometer Range: 4gstatic final intSmartBeacon Accelerometer Range: 8gstatic final intSmartBeacon Sensor Measure State: Notify if connected.static final intSmartBeacon Sensor Measure State: Off.static final intSmartBeacon Sensor Measure State: Recording if connected.static final intSmartBeacon Sensor Measure State: Recording if disconnected.static final intSmartBeacon Sensor Mode: Always continuous measurement.static final intSmartBeacon Sensor Mode: Always measurement after interrupt.static final intSmartBeacon Sensor Mode: Measurement after interrupt if connected.static final intSmartBeacon Sensor Mode: Measurement after interrupt if disconnected.static final intSmartBeacon Transfer State: Data transfer is started or runningstatic final intSmartBeacon Transfer State: Data header transfer is started or runningstatic final intSmartBeacon Transfer State: Data transfer is off or completed.static final intSmartBeacon Transfer State: Data reset is started or runningstatic final intEddystone TxPower mode: High.static final intEddystone TxPower mode: Low.static final intEddystone TxPower mode: Lowest.static final intEddystone TxPower mode: Medium.static final byteSmartBeacon Special Event Reset Action: Calibratestatic final byteSmartBeacon Special Event Reset Action: Turn offstatic final byteSmartBeacon Special Event Reset Action: Reset Countersstatic final byteSmartBeacon Special Frame Type: Button Counterstatic final byteSmartBeacon Special Frame Type: Device Tracingstatic final byteSmartBeacon Special Frame Type: Kontakt.io Locationstatic final byteSmartBeacon Special Frame Type: MySpherastatic final byteSmartBeacon Special Frame Type: Tilt MotionVon 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 TypMethodeBeschreibungintRetrieves the supported Smart Beacon selected frames, based on the firmware version.intRetrieves the supported Special Frame Type frames, based on the firmware version.voidobserveSensorMeasureValues(NotificationListener notificationListener) Observes the Sensor Measure Value notifications.voidobserveSensorTransferValues(NotificationListener notificationListener) Observes the Sensor Transfer Value notifications.voidreadAdvertisingType(ResponseListener responseListener) Reads the Smart Beacon Advertising Type.voidreadBeaconSettingsAdvertising(ResponseListener responseListener) Reads the beacon settings advertising settings.voidreadDeviceTracingRssiThreshold(ResponseListener responseListener) Reads the Device Tracing Rssi Threshold.voidreadDeviceTracingScanDuration(ResponseListener responseListener) Reads the Device Tracing Scan Duration.voidreadDeviceTracingScanInterval(ResponseListener responseListener) Reads the Device Tracing Scan Interval.voidreadDeviceTracingScanPeriod(ResponseListener responseListener) Reads the Device Tracing Scan Period.voidreadDeviceTracingScanWindow(ResponseListener responseListener) Reads the Device Tracing Scan Window.voidreadEddystoneLockState(ResponseListener responseListener) Reads the Eddystone locked state.voidreadEddystoneTxPowerMeasuredLevels(ResponseListener responseListener) Reads the measured Eddystone TxPower Levels.voidreadEddystoneTxPowerMode(ResponseListener responseListener) Reads the Eddystone TxPower Mode.voidreadEddystoneTxPowerPhysicalLevels(ResponseListener responseListener) Reads the physical Eddystone TxPower Levels.voidreadEddystoneUID(ResponseListener responseListener) Reads the Eddystone UID (namespace and instance ID).voidreadEddystoneUrl(ResponseListener responseListener) Reads the Eddystone URL.voidreadEventBeaconSettings(ResponseListener responseListener) Reads Event Beacon settings.voidreadFrames(ResponseListener responseListener) Reads the Smart Beacon selected frames.voidreadIBeaconAdvertisement(ResponseListener responseListener) Reads the iBeacon advertising data: UUID, Major, Minor and MeasuredPower.voidreadRepeaterSettings(ResponseListener responseListener) Reads the Settings for iBeacon Repeater.voidreadSensorAccelerometerRange(ResponseListener responseListener) Reads the Accelerometer sensor range.voidreadSensorInterrupt(ResponseListener responseListener) Reads the Sensor Interrupt settings.voidreadSensorIntervals(ResponseListener responseListener) Reads the Sensor Interval settings.voidreadSensorLimitedRecording(ResponseListener responseListener) Reads the Sensor Limited Recording settings.voidreadSensorMeasureState(ResponseListener responseListener) Reads the Sensor Measure State.voidreadSensorMode(ResponseListener responseListener) Reads the the Sensor Mode.voidreadSensorNotificationValuesCount(ResponseListener responseListener) Reads the maximum Sensor Notification Values count.voidreadSensorTransferState(ResponseListener responseListener) Reads the Sensor Transfer State.voidreadSensorType(ResponseListener responseListener) Reads the the Sensor Type.voidreadSettings(ResponseListener responseListener) Reads the global Smart Beacon settings.voidreadSpecialEventAngles(ResponseListener responseListener) Reads the Special Event Angles.voidreadSpecialEventPackets(ResponseListener responseListener) Reads the Special Event Packets.voidreadSpecialEventTimeouts(ResponseListener responseListener) Reads the Special Event Timeouts.voidreadSpecialType(ResponseListener responseListener) Reads the Special Frame Type.voidresetEddystone(ResponseListener responseListener) Resets all Eddystone values to factory default settings.voidwriteAdvertisingType(int type, ResponseListener responseListener) Writes the Smart Beacon Advertising Type.voidwriteBeaconSettingsAdvertising(BeaconSettingsAdvertising beaconSettingsAdvertising, ResponseListener responseListener) Writes the beacon settings advertising settings.voidwriteDeviceTracingRssiThreshold(int rssi, ResponseListener responseListener) Writes the Device Tracing Rssi Threshold.voidwriteDeviceTracingScanDuration(int duration, ResponseListener responseListener) Writes the Device Tracing Scan Duration.voidwriteDeviceTracingScanInterval(int interval, ResponseListener responseListener) Writes the Device Tracing Scan Interval.voidwriteDeviceTracingScanPeriod(int period, ResponseListener responseListener) Writes the Device Tracing Scan Period.voidwriteDeviceTracingScanWindow(int window, ResponseListener responseListener) Writes the Device Tracing Scan Window.voidwriteEddystoneLock(UUID key, ResponseListener responseListener) Locks the Eddystone settings against unauthorized changes.voidwriteEddystoneTxPowerMeasuredLevels(EddystoneTxPowerLevels eddystoneTxPowerLevels, ResponseListener responseListener) Writes the Eddystone TxPower Levels.voidwriteEddystoneTxPowerMode(int mode, ResponseListener responseListener) Writes the Eddystone TxPower Mode.voidwriteEddystoneUID(EddystoneUID eddystoneUID, ResponseListener responseListener) Writes the Eddystone UID (namespace and instance ID).voidwriteEddystoneUnlock(UUID key, ResponseListener responseListener) Unlocks the Eddystone settings.voidwriteEddystoneUrl(String url, ResponseListener responseListener) Writes the Eddystone URL.voidwriteEventBeaconSettings(EventBeaconSettings eventBeaconSettings, ResponseListener responseListener) Write Event Beacon settings.voidwriteFrames(int selectedFrames, ResponseListener responseListener) Writes the Smart Beacon selected frames.voidwriteIBeaconAdvertisement(IBeacon iBeacon, ResponseListener responseListener) Writes the iBeacon advertising data: UUID, Major, Minor and MeasuredPower.voidwriteRepeaterSettings(RepeaterSettings repeaterSettings, ResponseListener responseListener) Writes the Settings for iBeacon Repeater.voidwriteSensorAccelerometerRange(int range, ResponseListener responseListener) Writes the Accelerometer sensor range.voidwriteSensorInterrupt(SensorInterrupt interrupt, ResponseListener responseListener) Writes the Sensor Interrupt settings.voidwriteSensorIntervals(SensorIntervals intervals, ResponseListener responseListener) Writes the Sensor Interval settings.voidwriteSensorLimitedRecording(SensorLimitedRecording limitedRecording, ResponseListener responseListener) Writes the Sensor Limited Recording settings.voidwriteSensorMeasureState(int state, ResponseListener responseListener) Writes the Sensor Measure State.voidwriteSensorMode(int mode, ResponseListener responseListener) Writes the Sensor Mode.voidwriteSensorNotificationValuesCount(int count, ResponseListener responseListener) Writes the Sensor Notification Values count.voidwriteSensorTransferState(SensorTransferCommand transferParam, ResponseListener responseListener) Writes the Sensor Transfer State.voidwriteSensorType(SensorType type, ResponseListener responseListener) Writes the Sensor Type.voidwriteSettings(SmartBeaconSettings smartBeaconSettings, ResponseListener responseListener) Writes the global Smart Beacon settings.voidwriteSpecialEventAngles(SpecialEventAngles angles, ResponseListener responseListener) Writes the Special Event Angles.voidwriteSpecialEventPackets(SpecialEventPackets packets, ResponseListener responseListener) Writes the Special Event Packets.voidwriteSpecialEventResetAction(int action, ResponseListener responseListener) Writes the Special Event Reset Action.voidwriteSpecialEventTimeouts(SpecialEventTimeouts timeouts, ResponseListener responseListener) Writes the Special Event Timeouts.voidwriteSpecialType(int type, ResponseListener responseListener) Writes the Special Frame Type.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_BEACON_FRAME_NONE
public static final int SETTING_BEACON_FRAME_NONESmart Beacon frame: No frame.- Siehe auch:
-
SETTING_BEACON_FRAME_INFOBEACON_ENVIRONMENT
public static final int SETTING_BEACON_FRAME_INFOBEACON_ENVIRONMENTSmart Beacon frame: InfoBeacon Environment.- Siehe auch:
-
SETTING_BEACON_FRAME_INFOBEACON_ACCELERATION
public static final int SETTING_BEACON_FRAME_INFOBEACON_ACCELERATIONSmart Beacon frame: InfoBeacon Acceleration.- Siehe auch:
-
SETTING_BEACON_FRAME_INFOBEACON_MAGNETOMETER
public static final int SETTING_BEACON_FRAME_INFOBEACON_MAGNETOMETERSmart Beacon frame: InfoBeacon Magnetometer.- Siehe auch:
-
SETTING_BEACON_FRAME_EDDYSTONE_UID
public static final int SETTING_BEACON_FRAME_EDDYSTONE_UIDSmart Beacon frame: Eddystone UID.- Siehe auch:
-
SETTING_BEACON_FRAME_EDDYSTONE_URL
public static final int SETTING_BEACON_FRAME_EDDYSTONE_URLSmart Beacon frame: Eddystone URL.- Siehe auch:
-
SETTING_BEACON_FRAME_EDDYSTONE_TLM
public static final int SETTING_BEACON_FRAME_EDDYSTONE_TLMSmart Beacon frame: Eddystone TLM.- Siehe auch:
-
SETTING_BEACON_FRAME_SPECIAL
public static final int SETTING_BEACON_FRAME_SPECIALSmart Beacon frame: Special- Siehe auch:
-
SETTING_BEACON_FRAME_IBEACON
public static final int SETTING_BEACON_FRAME_IBEACONSmart Beacon frame: iBeacon.- Siehe auch:
-
SETTING_BEACON_ADVERTISING_TYPE_CONNECTABLE_SCANRESPONSE
public static final int SETTING_BEACON_ADVERTISING_TYPE_CONNECTABLE_SCANRESPONSESmart Beacon frame advertising type: connectable.Note: valid for firmware versions: 006.025 and since 006.027
- Siehe auch:
-
SETTING_BEACON_ADVERTISING_TYPE_NONCONNECTABLE_SCANRESPONSE
public static final int SETTING_BEACON_ADVERTISING_TYPE_NONCONNECTABLE_SCANRESPONSESmart Beacon frame advertising type: not connectable, with scan response.Note: valid for firmware versions: 006.025 and since 006.027
- Siehe auch:
-
SETTING_BEACON_ADVERTISING_TYPE_NONCONNECTABLE_NOSCANRESPONSE
public static final int SETTING_BEACON_ADVERTISING_TYPE_NONCONNECTABLE_NOSCANRESPONSESmart Beacon frame advertising type: not connectable, no scan response.Note: valid for firmware versions: 006.025 and since 006.027
- Siehe auch:
-
SETTING_BEACON_LEGACY_ADVERTISING_TYPE_CONNECTABLE_SCANRESPONSE
public static final int SETTING_BEACON_LEGACY_ADVERTISING_TYPE_CONNECTABLE_SCANRESPONSESmart Beacon frame advertising type: connectable.Note: valid for legacy firmware versions: 002.xxx and 003.xxx
- Siehe auch:
-
SETTING_BEACON_LEGACY_ADVERTISING_TYPE_NONCONNECTABLE_SCANRESPONSE
public static final int SETTING_BEACON_LEGACY_ADVERTISING_TYPE_NONCONNECTABLE_SCANRESPONSESmart Beacon frame advertising type: not connectable, with scan response.Note: valid for legacy firmware versions: 002.xxx and 003.xxx
- Siehe auch:
-
SETTING_BEACON_LEGACY_ADVERTISING_TYPE_NONCONNECTABLE_NOSCANRESPONSE
public static final int SETTING_BEACON_LEGACY_ADVERTISING_TYPE_NONCONNECTABLE_NOSCANRESPONSESmart Beacon frame advertising type: not connectable, no scan response.Note: valid for legacy firmware versions: 002.xxx and 003.xxx
- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_UNUSED
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_UNUSEDSmart Beacon event alternation mode: UNUSED.Because alternation mode is an new feature since version 002.015 this mode is set for all older versions.
- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_OFF
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_OFFSmart Beacon event alternation mode: OFFiBeacon Minor and Major base value will be constantly sent
- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUS
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_CONTINUOUSSmart Beacon event alternation mode: MINOR CONTINUOUSiBeacon Minor will be increased each event until Modulo - 1 (see
EventBeaconSettings.getIBeaconAlternationModulo())- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESET
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESETSmart Beacon event alternation mode: MINOR RESETiBeacon Minor will be increased each event until Modulo - 1 and will be reset on next event (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Minor is reset to base value.- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESET_MAX
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MINOR_RESET_MAXSmart Beacon event alternation mode: MINOR RESET MAXiBeacon Minor will be increased each event until Modulo - 1 and wont be reset on next events (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Minor is reset to base value.- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESETSmart Beacon event alternation mode: MAJOR RESETiBeacon Major will be increased each event until Modulo - 1 and will be reset on next event (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Major is reset to base value.- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_MAX
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_MAXSmart Beacon event alternation mode: MAJOR RESET MAXiBeacon Major will be increased each event until Modulo - 1 and wont be reset on next events (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Major is reset to base value.- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_LED
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_LEDSmart Beacon event alternation mode: MAJOR RESET LEDiBeacon Major will be increased each event until Modulo - 1 and will be reset on next event (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Major is reset to base value.Red LED is visualising the alternation state for complete event duration:
- Major + 0: fast blink (interval 50ms)
- Major + 1: slow blink (interval 300ms)
- Major + 2: continuously on
- Major + >2: continuously off
- Siehe auch:
-
SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_MAX_LED
public static final int SETTING_BEACON_EVENT_ALTERNATION_MODE_MAJOR_RESET_MAX_LEDSmart Beacon event alternation mode: MAJOR RESET MAX LEDiBeacon Major will be increased each event until Modulo - 1 and wont be reset on next events (see
EventBeaconSettings.getIBeaconAlternationModulo()).After event duration (see
EventBeaconSettings.getEventDuration()) iBeacon Major is reset to base value.Red LED is visualising the alternation state for complete event duration:
- Major + 0: fast blink (interval 50ms)
- Major + 1: slow blink (interval 300ms)
- Major + 2: continuously on
- Major + >2: continuously off
- Siehe auch:
-
SETTING_BEACON_EVENT_TRIGGER_OFF
public static final int SETTING_BEACON_EVENT_TRIGGER_OFFSmart Beacon event trigger: Off.- Siehe auch:
-
SETTING_BEACON_EVENT_TRIGGER_BUTTON
public static final int SETTING_BEACON_EVENT_TRIGGER_BUTTONSmart Beacon event trigger: Button.- Siehe auch:
-
SETTING_BEACON_EVENT_TRIGGER_RIPLINE
public static final int SETTING_BEACON_EVENT_TRIGGER_RIPLINESmart Beacon event trigger: Ripline.- Siehe auch:
-
SETTING_BEACON_EVENT_TRIGGER_TIMER
public static final int SETTING_BEACON_EVENT_TRIGGER_TIMERSmart Beacon event trigger: Timer.- Siehe auch:
-
SETTING_BEACON_EVENT_TRIGGER_SENSOR
public static final int SETTING_BEACON_EVENT_TRIGGER_SENSORSmart Beacon event trigger: Sensor.- Siehe auch:
-
SETTING_EDDYSTONE_TXPOWER_MODE_LOWEST
public static final int SETTING_EDDYSTONE_TXPOWER_MODE_LOWESTEddystone TxPower mode: Lowest.- Siehe auch:
-
SETTING_EDDYSTONE_TXPOWER_MODE_LOW
public static final int SETTING_EDDYSTONE_TXPOWER_MODE_LOWEddystone TxPower mode: Low.- Siehe auch:
-
SETTING_EDDYSTONE_TXPOWER_MODE_MEDIUM
public static final int SETTING_EDDYSTONE_TXPOWER_MODE_MEDIUMEddystone TxPower mode: Medium.- Siehe auch:
-
SETTING_EDDYSTONE_TXPOWER_MODE_HIGH
public static final int SETTING_EDDYSTONE_TXPOWER_MODE_HIGHEddystone TxPower mode: High.- Siehe auch:
-
SETTING_BEACON_SENSOR_MEASURE_STATE_OFF
public static final int SETTING_BEACON_SENSOR_MEASURE_STATE_OFFSmartBeacon Sensor Measure State: Off.- Siehe auch:
-
SETTING_BEACON_SENSOR_MEASURE_STATE_NOFITY_CONNECTED
public static final int SETTING_BEACON_SENSOR_MEASURE_STATE_NOFITY_CONNECTEDSmartBeacon Sensor Measure State: Notify if connected.- Siehe auch:
-
SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_CONNECTED
public static final int SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_CONNECTEDSmartBeacon Sensor Measure State: Recording if connected.- Siehe auch:
-
SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_DISCONNECTED
public static final int SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_DISCONNECTEDSmartBeacon Sensor Measure State: Recording if disconnected.- Siehe auch:
-
SETTING_BEACON_SENSOR_MODE_CONTINUOUS_ALWAYS
public static final int SETTING_BEACON_SENSOR_MODE_CONTINUOUS_ALWAYSSmartBeacon Sensor Mode: Always continuous measurement.- Siehe auch:
-
SETTING_BEACON_SENSOR_MODE_INTERRUPT_CONNECTED
public static final int SETTING_BEACON_SENSOR_MODE_INTERRUPT_CONNECTEDSmartBeacon Sensor Mode: Measurement after interrupt if connected.- Siehe auch:
-
SETTING_BEACON_SENSOR_MODE_INTERRUPT_DISCONNECTED
public static final int SETTING_BEACON_SENSOR_MODE_INTERRUPT_DISCONNECTEDSmartBeacon Sensor Mode: Measurement after interrupt if disconnected.- Siehe auch:
-
SETTING_BEACON_SENSOR_MODE_INTERRUPT_ALWAYS
public static final int SETTING_BEACON_SENSOR_MODE_INTERRUPT_ALWAYSSmartBeacon Sensor Mode: Always measurement after interrupt.- Siehe auch:
-
SETTING_BEACON_SENSOR_TRANSFER_STATE_OFF
public static final int SETTING_BEACON_SENSOR_TRANSFER_STATE_OFFSmartBeacon Transfer State: Data transfer is off or completed.- Siehe auch:
-
SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_DATA
public static final int SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_DATASmartBeacon Transfer State: Data transfer is started or running- Siehe auch:
-
SETTING_BEACON_SENSOR_TRANSFER_STATE_RESET_DATA
public static final int SETTING_BEACON_SENSOR_TRANSFER_STATE_RESET_DATASmartBeacon Transfer State: Data reset is started or running- Siehe auch:
-
SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_HEADERS
public static final int SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_HEADERSSmartBeacon Transfer State: Data header transfer is started or running- Siehe auch:
-
SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_2G
public static final int SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_2GSmartBeacon Accelerometer Range: 2g- Siehe auch:
-
SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_4G
public static final int SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_4GSmartBeacon Accelerometer Range: 4g- Siehe auch:
-
SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_8G
public static final int SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_8GSmartBeacon Accelerometer Range: 8g- Siehe auch:
-
SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_16G
public static final int SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_16GSmartBeacon Accelerometer Range: 16g Note: only supported for sensor typeSensorType.ACCELEROMETER_LIS2DU- Siehe auch:
-
SETTING_SPECIAL_TYPE_DEVICE_TRACING
public static final byte SETTING_SPECIAL_TYPE_DEVICE_TRACINGSmartBeacon Special Frame Type: Device Tracing- Siehe auch:
-
SETTING_SPECIAL_TYPE_TILT_MOTION
public static final byte SETTING_SPECIAL_TYPE_TILT_MOTIONSmartBeacon Special Frame Type: Tilt Motion- Siehe auch:
-
SETTING_SPECIAL_TYPE_BUTTON_COUNTER
public static final byte SETTING_SPECIAL_TYPE_BUTTON_COUNTERSmartBeacon Special Frame Type: Button Counter- Siehe auch:
-
SETTING_SPECIAL_TYPE_EXTERN_MYSPHERA
public static final byte SETTING_SPECIAL_TYPE_EXTERN_MYSPHERASmartBeacon Special Frame Type: MySphera- Siehe auch:
-
SETTING_SPECIAL_TYPE_EXTERN_KONTAKTIO_LOCATION
public static final byte SETTING_SPECIAL_TYPE_EXTERN_KONTAKTIO_LOCATIONSmartBeacon Special Frame Type: Kontakt.io Location- Siehe auch:
-
SETTING_SPECIAL_EVENT_RESET_ACTION_RESET_COUNTERS
public static final byte SETTING_SPECIAL_EVENT_RESET_ACTION_RESET_COUNTERSSmartBeacon Special Event Reset Action: Reset Counters- Siehe auch:
-
SETTING_SPECIAL_EVENT_RESET_ACTION_CALIBRATION
public static final byte SETTING_SPECIAL_EVENT_RESET_ACTION_CALIBRATIONSmartBeacon Special Event Reset Action: Calibrate- Siehe auch:
-
SETTING_SPECIAL_EVENT_RESET_ACTION_OFF
public static final byte SETTING_SPECIAL_EVENT_RESET_ACTION_OFFSmartBeacon Special Event Reset Action: Turn off- Siehe auch:
-
-
Methodendetails
-
readFrames
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readFrames(@NonNull ResponseListener responseListener) Reads the Smart Beacon selected frames.See
writeFrames(int, ResponseListener)for more information.Note: valid for Firmware versions: 006.xxx
ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeFrames
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeFrames(int selectedFrames, @NonNull ResponseListener responseListener) Writes the Smart Beacon selected frames.Note: valid for Firmware versions: 006.xxx
Values: (Bitwise Set of following constants)
- Parameter:
selectedFrames- a bitwise set of selected framesresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
getFramesSelection
public int getFramesSelection()Retrieves the supported Smart Beacon selected frames, based on the firmware version.Values: (Bitwise Set of following constants)
- Gibt zurück:
- supported Smart Beacon frames
- Siehe auch:
-
readAdvertisingType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readAdvertisingType(@NonNull ResponseListener responseListener) Reads the Smart Beacon Advertising Type.See
writeAdvertisingType(int, ResponseListener)for more information.Note: valid for Firmware versions: 006.025 and since 006.027
ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeAdvertisingType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeAdvertisingType(int type, @NonNull ResponseListener responseListener) Writes the Smart Beacon Advertising Type.Note: valid for Firmware versions: 006.025 and since 006.027
Values:
- Parameter:
type- advertising typeresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readBeaconSettingsAdvertising
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readBeaconSettingsAdvertising(@NonNull ResponseListener responseListener) Reads the beacon settings advertising settings.See
writeBeaconSettingsAdvertising(BeaconSettingsAdvertising, ResponseListener)for more information.Note: valid for Firmware versions: 006.025 and since 006.027
ResponseData:BlukiiDataItem Type-BeaconSettingsAdvertising- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeBeaconSettingsAdvertising
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeBeaconSettingsAdvertising(BeaconSettingsAdvertising beaconSettingsAdvertising, @NonNull ResponseListener responseListener) Writes the beacon settings advertising settings.Use a
BeaconSettingsAdvertisingobject to define settings.Note: valid for Firmware versions: 006.025 and since 006.027
Note: Beacon settings advertising is sent as settings advertising frame, that is not customizable. It is enabled if the interval is set between 100 and 10000.
ResponseData:BlukiiDataItem Type-BeaconSettingsAdvertising- Parameter:
beaconSettingsAdvertising- Beacon settings advertising settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSettings(@NonNull ResponseListener responseListener) Reads the global Smart Beacon settings.See
writeSettings(SmartBeaconSettings, ResponseListener)for more information.Note: valid for Firmware versions: 002.xxx and 003.xxx
ResponseData:BlukiiDataItem Type-SmartBeaconSettings- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSettings(SmartBeaconSettings smartBeaconSettings, @NonNull ResponseListener responseListener) Writes the global Smart Beacon settings.Use a
SmartBeaconSettingsobject to define settings.Note: valid for Firmware versions: 002.xxx and 003.xxx
ResponseData:BlukiiDataItem Type-SmartBeaconSettings- Parameter:
smartBeaconSettings- Set of global Smart Beacon settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEventBeaconSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEventBeaconSettings(@NonNull ResponseListener responseListener) Reads Event Beacon settings.Note: This feature must be unlocked on blukii purchase.
ResponseData:BlukiiDataItem Type-EventBeaconSettings- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEventBeaconSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEventBeaconSettings(EventBeaconSettings eventBeaconSettings, @NonNull ResponseListener responseListener) Write Event Beacon settings.ResponseData:BlukiiDataItem Type-EventBeaconSettings- Parameter:
eventBeaconSettings-EventBeaconSettingsobject which defines the settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readIBeaconAdvertisement
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readIBeaconAdvertisement(@NonNull ResponseListener responseListener) Reads the iBeacon advertising data: UUID, Major, Minor and MeasuredPower.ResponseData:BlukiiDataItem Type-IBeacon- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeIBeaconAdvertisement
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeIBeaconAdvertisement(IBeacon iBeacon, @NonNull ResponseListener responseListener) Writes the iBeacon advertising data: UUID, Major, Minor and MeasuredPower.ResponseData:BlukiiDataItem Type-IBeacon- Parameter:
iBeacon-IBeaconobject, which defines UUID, Major, Minor & MeasuredPowerresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readRepeaterSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readRepeaterSettings(@NonNull ResponseListener responseListener) Reads the Settings for iBeacon Repeater.ResponseData:BlukiiDataItem Type-RepeaterSettings- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeRepeaterSettings
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeRepeaterSettings(RepeaterSettings repeaterSettings, @NonNull ResponseListener responseListener) Writes the Settings for iBeacon Repeater.ResponseData:BlukiiDataItem Type-RepeaterSettings- Parameter:
repeaterSettings-IBeaconobject, which defines Repeater Settings for primary and event advertisingresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneUID
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEddystoneUID(@NonNull ResponseListener responseListener) Reads the Eddystone UID (namespace and instance ID).ResponseData:BlukiiDataItem Type-EddystoneUID- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneUID
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneUID(EddystoneUID eddystoneUID, @NonNull ResponseListener responseListener) Writes the Eddystone UID (namespace and instance ID).ResponseData:BlukiiDataItem Type-EddystoneUID- Parameter:
eddystoneUID-EddystoneUIDobject, which defines Namespace & InstanceresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneUrl
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEddystoneUrl(@NonNull ResponseListener responseListener) Reads the Eddystone URL.ResponseData:BlukiiDataItem Type-String- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneUrl
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneUrl(String url, @NonNull ResponseListener responseListener) Writes the Eddystone URL.ResponseData:BlukiiDataItem Type-String- Parameter:
url- url stringresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneLockState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEddystoneLockState(@NonNull ResponseListener responseListener) Reads the Eddystone locked state.Values:
true: Eddystone is lockedfalse: Eddystone is unlocked
ResponseData:BlukiiDataItem Type-Boolean- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneLock
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneLock(UUID key, @NonNull ResponseListener responseListener) Locks the Eddystone settings against unauthorized changes.Note: Eddystone will be lock with a secret key. You can unlock (see
writeEddystoneUnlock(UUID, ResponseListener)) with this key only.ResponseData:BlukiiDataItem Type-null- Parameter:
key- secret lock key as UUIDresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneUnlock
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneUnlock(UUID key, @NonNull ResponseListener responseListener) Unlocks the Eddystone settings.Note: You only can unlock, if Eddystone is locked and if you know the secret key that is set by
writeEddystoneLock(UUID, ResponseListener).ResponseData:BlukiiDataItem Type-null- Parameter:
key- UUID as secret lock keyresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneTxPowerPhysicalLevels
Reads the physical Eddystone TxPower Levels.ResponseData:BlukiiDataItem Type-EddystoneTxPowerLevels- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneTxPowerMeasuredLevels
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEddystoneTxPowerMeasuredLevels(@NonNull ResponseListener responseListener) Reads the measured Eddystone TxPower Levels.ResponseData:BlukiiDataItem Type-EddystoneTxPowerLevels- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneTxPowerMeasuredLevels
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneTxPowerMeasuredLevels(EddystoneTxPowerLevels eddystoneTxPowerLevels, @NonNull ResponseListener responseListener) Writes the Eddystone TxPower Levels.You can define the measured TxPower strength for each Eddystone TxPower Mode (see
writeEddystoneTxPowerMode(int, ResponseListener)) that is received at 0 meters from the device.See also the Google definition for Tx Power Level.
ResponseData:BlukiiDataItem Type-EddystoneTxPowerLevels- Parameter:
eddystoneTxPowerLevels-EddystoneTxPowerLevelsobject, which defines the levelsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readEddystoneTxPowerMode
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readEddystoneTxPowerMode(@NonNull ResponseListener responseListener) Reads the Eddystone TxPower Mode.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeEddystoneTxPowerMode
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeEddystoneTxPowerMode(int mode, @NonNull ResponseListener responseListener) Writes the Eddystone TxPower Mode.This action sets the physical TxPower strength. You can choose between 4 modes that's physical power is defined by the blukii device.
Values:
SETTING_EDDYSTONE_TXPOWER_MODE_LOWESTSETTING_EDDYSTONE_TXPOWER_MODE_LOWSETTING_EDDYSTONE_TXPOWER_MODE_MEDIUMSETTING_EDDYSTONE_TXPOWER_MODE_HIGH
See also the Google definition for Tx Power Mode.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
mode- TxPower mode, a constant valueresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
resetEddystone
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void resetEddystone(@NonNull ResponseListener responseListener) Resets all Eddystone values to factory default settings.Note: This action is only valid if Eddystone is not locked (see
readEddystoneLockState(ResponseListener)).ResponseData:BlukiiDataItem Type-null- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
observeSensorMeasureValues
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void observeSensorMeasureValues(@NonNull NotificationListener notificationListener) Observes the Sensor Measure Value notifications.If sensor value is sent then
NotificationListener.onNotify(ResponseData)is called.ResponseData:NotificationListener.onNotify(ResponseData):BlukiiDataItem Type-AccelerometerValueSee
writeSensorMeasureState(int, ResponseListener)for more information.- Parameter:
notificationListener-NotificationListeneron which callbackonNotifyis called- Siehe auch:
-
readSensorMeasureState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorMeasureState(@NonNull ResponseListener responseListener) Reads the Sensor Measure State.ResponseData:ResponseListener.onResponse(ResponseData):BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorMeasureState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorMeasureState(int state, @NonNull ResponseListener responseListener) Writes the Sensor Measure State.The measure state is a combined value of the following operating states:
SETTING_BEACON_SENSOR_MEASURE_STATE_NOFITY_CONNECTED: Sensor value notifications, if the beacon is connected.SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_CONNECTED: Sensor value recording, if the beacon is connected.SETTING_BEACON_SENSOR_MEASURE_STATE_RECORDING_DISCONNECTED: Sensor value recording, if the beacon is disconnected.
SETTING_BEACON_SENSOR_MEASURE_STATE_OFF: no notifications or recordingResponseData:BlukiiDataItem Type-Integer- Parameter:
state- Combination of sensor measure operating statesresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorMode
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorMode(@NonNull ResponseListener responseListener) Reads the the Sensor Mode.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorMode
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorMode(int mode, @NonNull ResponseListener responseListener) Writes the Sensor Mode.The Sensor Mode defines if the measurement is done continuously or after interrupt during connected or disconnected state.
Values:
SETTING_BEACON_SENSOR_MODE_CONTINUOUS_ALWAYS: Sensor measurement is done continuously if the beacon is connected or disconnected.SETTING_BEACON_SENSOR_MODE_INTERRUPT_CONNECTED: Sensor measurement is triggered by interrupt if the beacon is connected, continuously if disconnected.SETTING_BEACON_SENSOR_MODE_INTERRUPT_DISCONNECTED: Sensor measurement is triggered by interrupt if the beacon is disconnected, continuously if connected.SETTING_BEACON_SENSOR_MODE_INTERRUPT_ALWAYS: Sensor measurement is triggered by interrupt if the beacon is connected or disconnected.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
mode- Sensor moderesponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorType(@NonNull ResponseListener responseListener) Reads the the Sensor Type.ResponseData:BlukiiDataItem Type-SensorType- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorType(SensorType type, @NonNull ResponseListener responseListener) Writes the Sensor Type.The Sensor Type defines the sensor family and model. It depends on the blukii hardware and firmware which sensor type is supported.
Values:
SensorType.ACCELEROMETER_ADXL362: Accelerometer ADXL362 (Firmware 006.xxx only).SensorType.ACCELEROMETER_LIS2DU: Accelerometer LIS2DU (Firmware 007.xxx only).
ResponseData:BlukiiDataItem Type-SensorType- Parameter:
type- Sensor typeresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorIntervals
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorIntervals(@NonNull ResponseListener responseListener) Reads the Sensor Interval settings.ResponseData:BlukiiDataItem Type-SensorIntervals- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorIntervals
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorIntervals(SensorIntervals intervals, @NonNull ResponseListener responseListener) Writes the Sensor Interval settings.You have to set the following interval durations:
SensorIntervals.setMeasureInterval(int)Interval (in ms) of sensor data measurement (seewriteSensorMeasureState(int, ResponseListener)).SensorIntervals.setTransferInterval(int)Interval (in ms) of sensor data transfer (seewriteSensorTransferState(SensorTransferCommand, ResponseListener)).
ResponseData:BlukiiDataItem Type-SensorIntervals- Parameter:
intervals- Sensor interval settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
observeSensorTransferValues
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void observeSensorTransferValues(@NonNull NotificationListener notificationListener) Observes the Sensor Transfer Value notifications.If sensor transfer value is sent then
NotificationListener.onNotify(ResponseData)is called.ResponseData:NotificationListener.onNotify(ResponseData)See
writeSensorTransferState(SensorTransferCommand, ResponseListener)for more information.- Parameter:
notificationListener-NotificationListeneron which callbackonNotifyis called- Siehe auch:
-
readSensorTransferState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorTransferState(@NonNull ResponseListener responseListener) Reads the Sensor Transfer State.The response contains the current running Transfer state (see
writeSensorTransferState(SensorTransferCommand, ResponseListener)). After the action has been finished, the state automatically changes toSETTING_BEACON_SENSOR_TRANSFER_STATE_OFF.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorTransferState
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorTransferState(SensorTransferCommand transferParam, @NonNull ResponseListener responseListener) Writes the Sensor Transfer State.This write command starts a data transfer action:
SETTING_BEACON_SENSOR_TRANSFER_STATE_OFF: Stops the data transfer action if running.SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_DATA: Starts the transfer of recorded sensor data.SETTING_BEACON_SENSOR_TRANSFER_STATE_RESET_DATA: Resets all recorded sensor data in flash memory.SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_HEADERS: Starts the transfer of data headers only.
Note: If transfer state
SETTING_BEACON_SENSOR_TRANSFER_STATE_GET_DATAorSETTING_BEACON_SENSOR_TRANSFER_STATE_GET_HEADERSis active then data is sent every Transfer Interval (seewriteSensorIntervals(SensorIntervals, ResponseListener)). The data notifications can be observed byobserveSensorTransferValues(NotificationListener).Sensor datasets are transferred sequentially according to the following transfer protocol.
It consists of 3 types of notification packets (
NotificationListener.onNotify(ResponseData)):- Dataset header:
BlukiiDataItem Type-SensorRecordingHeader - Data value:
BlukiiDataItem Type-AccelerometerValue - Transfer finished:
BlukiiDataItem Type-SensorTransferFinish
Protocol sequence:
- Dataset 1 header
- Data value 1 of dataset 1
- …
- Data value N1 of dataset 1
- Dataset 2 header
- Data value 1 of dataset 2
- …
- Data value N2 of dataset 2
- …
- Dataset M header
- Data value 1 of dataset M
- …
- Data value NM of dataset M
- Transfer finished
- Parameter:
transferParam- Sensor Transfer State CommandresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorAccelerometerRange
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorAccelerometerRange(@NonNull ResponseListener responseListener) Reads the Accelerometer sensor range.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorAccelerometerRange
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorAccelerometerRange(int range, @NonNull ResponseListener responseListener) Writes the Accelerometer sensor range.Values:
SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_2G: Range +2g...-2g.SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_4G: Range +4g...-4g.SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_8G: Range +8g...-8g.SETTING_BEACON_SENSOR_ACCELEROMETER_RANGE_16G: Range +16g...-16g (for sensor typeSensorType.ACCELEROMETER_LIS2DUonly).
ResponseData:BlukiiDataItem Type-Integer- Parameter:
range- Accelerometer RangeresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorInterrupt
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorInterrupt(@NonNull ResponseListener responseListener) Reads the Sensor Interrupt settings.ResponseData:BlukiiDataItem Type-SensorInterrupt- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorInterrupt
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorInterrupt(SensorInterrupt interrupt, @NonNull ResponseListener responseListener) Writes the Sensor Interrupt settings.You have to set the following values:
SensorInterrupt.setActiveThreshold(int): Active threshold: must be exceeded by at least one accelerometer axis (relative to the idle value) in order to trigger an interrupt.SensorInterrupt.setInactiveThreshold(int): Inactive threshold: must be undercut (relative to the last idle value) after an interrupt in order to allow a new interrupt.SensorInterrupt.setMeasureCount(int): Measure count: amount of sensor values that are measured after an interrupt.
ResponseData:BlukiiDataItem Type-SensorInterrupt- Parameter:
interrupt- Sensor interrupt settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorLimitedRecording
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorLimitedRecording(@NonNull ResponseListener responseListener) Reads the Sensor Limited Recording settings.ResponseData:BlukiiDataItem Type-SensorLimitedRecording- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorLimitedRecording
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorLimitedRecording(SensorLimitedRecording limitedRecording, @NonNull ResponseListener responseListener) Writes the Sensor Limited Recording settings.You have to set the following values:
SensorLimitedRecording.setMaxCount(int): Limited amount of recorded sensor values in defined timespan (max 511, 0: no limit).SensorLimitedRecording.setTimespan(int): Duration in seconds for limited amount of recorded sensor values.
ResponseData:BlukiiDataItem Type-SensorLimitedRecording- Parameter:
limitedRecording- Sensor Limited Recording settingsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSensorNotificationValuesCount
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSensorNotificationValuesCount(@NonNull ResponseListener responseListener) Reads the maximum Sensor Notification Values count.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSensorNotificationValuesCount
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSensorNotificationValuesCount(int count, @NonNull ResponseListener responseListener) Writes the Sensor Notification Values count.This describes the maximum number of sensor values that should be included in one sensor notification.
It affects the sensor live notification (see
writeSensorMeasureState(int, ResponseListener)) and the recorded sensor data transfer (seewriteSensorTransferState(SensorTransferCommand, ResponseListener).Note: the real number of sensor values depends on the maximal notification bytes size that is derived from the MTU size. Therefore, the MTU size has to be set with command
Blukii.requestMtu(int, ResponseListener).Value range: 1 (default) .. 40
The least mtu size can be calculated based on the desired values number:
- For sensor live notifications: 8 + (values_count * 6)
- For recorded sensor data transfer: 10 + (values_count * 6)
ResponseData:BlukiiDataItem Type-Integer- Parameter:
count- Sensor Notification Values countresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSpecialType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSpecialType(@NonNull ResponseListener responseListener) Reads the Special Frame Type.You can choose between different types:
SETTING_SPECIAL_TYPE_DEVICE_TRACING- Device TracingSETTING_SPECIAL_TYPE_TILT_MOTION- Tilt MotionSETTING_SPECIAL_TYPE_BUTTON_COUNTER- Button Counter
ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSpecialType
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSpecialType(int type, @NonNull ResponseListener responseListener) Writes the Special Frame Type.ResponseData:BlukiiDataItem Type-Integer- Parameter:
type- Special Frame TyperesponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
getSpecialTypesSelection
public int getSpecialTypesSelection()Retrieves the supported Special Frame Type frames, based on the firmware version.Values: (Bitwise Set of following constants)
- 0x01: Device Tracing
- 0x02: Tilt Motion
- 0x04: Button Click
- Gibt zurück:
- supported Special Frame Types
- Siehe auch:
-
readDeviceTracingScanPeriod
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readDeviceTracingScanPeriod(@NonNull ResponseListener responseListener) Reads the Device Tracing Scan Period.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeDeviceTracingScanPeriod
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeDeviceTracingScanPeriod(int period, @NonNull ResponseListener responseListener) Writes the Device Tracing Scan Period.Scan Period: Period (in seconds) of collecting other Device Tracing frames, until the own Device Tracing frame is updated.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
period- Device Tracing Scan PeriodresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readDeviceTracingScanDuration
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readDeviceTracingScanDuration(@NonNull ResponseListener responseListener) Reads the Device Tracing Scan Duration.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeDeviceTracingScanDuration
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeDeviceTracingScanDuration(int duration, @NonNull ResponseListener responseListener) Writes the Device Tracing Scan Duration.Scan Duration: Duration (in ms) after the internal BLE scan is restarted.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
duration- Device Tracing Scan DurationresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readDeviceTracingScanInterval
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readDeviceTracingScanInterval(@NonNull ResponseListener responseListener) Reads the Device Tracing Scan Interval.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeDeviceTracingScanInterval
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeDeviceTracingScanInterval(int interval, @NonNull ResponseListener responseListener) Writes the Device Tracing Scan Interval.Scan Interval: Interval (in ms) after the BLE channel (37, 38, 39) is alternated.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
interval- Device Tracing Scan IntervalresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readDeviceTracingScanWindow
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readDeviceTracingScanWindow(@NonNull ResponseListener responseListener) Reads the Device Tracing Scan Window.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeDeviceTracingScanWindow
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeDeviceTracingScanWindow(int window, @NonNull ResponseListener responseListener) Writes the Device Tracing Scan Window.Scan Window: Time window (in ms) as part of the Scan Interval in which the BLE unit is listening for advertising packets.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
window- Device Tracing Scan IntervalresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readDeviceTracingRssiThreshold
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readDeviceTracingRssiThreshold(@NonNull ResponseListener responseListener) Reads the Device Tracing Rssi Threshold.ResponseData:BlukiiDataItem Type-Integer- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeDeviceTracingRssiThreshold
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeDeviceTracingRssiThreshold(int rssi, @NonNull ResponseListener responseListener) Writes the Device Tracing Rssi Threshold.Rssi Threshold: Advertising packets are only received if the RSSI value is higher than or equal to the threshold.
ResponseData:BlukiiDataItem Type-Integer- Parameter:
rssi- Device Tracing Rssi ThresholdresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSpecialEventAngles
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSpecialEventAngles(@NonNull ResponseListener responseListener) Reads the Special Event Angles.ResponseData:BlukiiDataItem Type-SpecialEventAngles- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSpecialEventAngles
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSpecialEventAngles(SpecialEventAngles angles, @NonNull ResponseListener responseListener) Writes the Special Event Angles.ResponseData:BlukiiDataItem Type-SpecialEventAngles- Parameter:
angles- Special Event AnglesresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSpecialEventTimeouts
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSpecialEventTimeouts(@NonNull ResponseListener responseListener) Reads the Special Event Timeouts.ResponseData:BlukiiDataItem Type-SpecialEventTimeouts- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSpecialEventTimeouts
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSpecialEventTimeouts(SpecialEventTimeouts timeouts, @NonNull ResponseListener responseListener) Writes the Special Event Timeouts.ResponseData:BlukiiDataItem Type-SpecialEventTimeouts- Parameter:
timeouts- Special Event TimeoutsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
readSpecialEventPackets
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void readSpecialEventPackets(@NonNull ResponseListener responseListener) Reads the Special Event Packets.ResponseData:BlukiiDataItem Type-SpecialEventPackets- Parameter:
responseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSpecialEventPackets
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSpecialEventPackets(SpecialEventPackets packets, @NonNull ResponseListener responseListener) Writes the Special Event Packets.ResponseData:BlukiiDataItem Type-SpecialEventPackets- Parameter:
packets- Special Event PacketsresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-
writeSpecialEventResetAction
@RequiresPermission("android.permission.BLUETOOTH_CONNECT") public void writeSpecialEventResetAction(int action, @NonNull ResponseListener responseListener) Writes the Special Event Reset Action.You can choose between different modes:
SETTING_SPECIAL_EVENT_RESET_ACTION_RESET_COUNTERS- resets the Special Event counters (tilt motion and button click)SETTING_SPECIAL_EVENT_RESET_ACTION_CALIBRATION- Calibrates the Tilt Motion detectionSETTING_SPECIAL_EVENT_RESET_ACTION_OFF- Switchs the Special Event detection off
ResponseData:BlukiiDataItem Type-Integer- Parameter:
action- Special Event Reset ActionresponseListener-ResponseListeneron which callbackonResponseis called- Siehe auch:
-