public interface BeaconConfigurationListener
Modifier and Type | Method and Description |
---|---|
void |
onCommandToNotConnectedBeacon() |
void |
onConnect(boolean connected,
boolean authenticated)
is called when a Beacon is connected
if the authentication fails it will call to onDisconnect automatically
|
void |
onConnectionExist()
is called when Beacon try to connect and there is a beacon already
connected.
|
void |
onDisconnect()
is called when a Beacon that was connected is disconnected.
|
void |
onFailedToReadAdvertisementSettings()
is called when read the Advertising settings fails.
|
void |
onFailedToReadConnectionSettings()
is called when read the connection settings fails.
|
void |
onFailedToReadDeviceStatus()
is called when read the status of teh device fails.
|
void |
onFailedToReadEddystoneUID()
is called when read the EddystoneUID fails
|
void |
onFailedToReadEddystoneURL()
is called when the EddystoneURL fails
|
void |
onFailedToReadFrameTypeConnectionRates()
is called when read the FrameType Connection Rates fails.
|
void |
onFailedToReadFrameTypeIntervalTxPower()
is called when read the Frame Type Interval TxPower fails
|
void |
onFailedToReadIBeaconMajorAndMinor()
is called when read the IBeacon manor and minor fails
|
void |
onFailedToReadIBeaconUUID()
is called when read the IBeacon UUID fails
|
void |
onFailedToReadTemperature()
is called when read the temperature fails.
|
void |
onFailedToSetAccelerometerConfiguration()
is called when set the Accelerometer configration fails.
|
void |
onFailedToSetAdvertisementSettings()
is called when set the Advertising settings fails.
|
void |
onFailedToSetConnectionSettings()
is called when set the connection settings fails.
|
void |
onFailedToSetEddystoneUID()
is called when set the Eddystone UID fails.
|
void |
onFailedToSetEddystoneURL()
is called when set the Eddystone URL fails.
|
void |
onFailedToSetFrameTypeConnectionRates()
is called when set the FrameType Connection Rates fails.
|
void |
onFailedToSetFrameTypeIntervalTxPower()
is called when set the FrameType TX Power fails.
|
void |
onFailedToSetIBeaconMajorAndMinor()
is called when set the IBeacon Major and Minor fails.
|
void |
onFailedToSetIBeaconUUID()
is called when set the IBeacon UUID fails.
|
void |
onFailedToUpdateFirmware(int status)
is called when update firmware fails
|
void |
onReadAdvertisementSettings(float disconnectInterval,
float disconnectTimeOut,
float energySavingTimeOut)
read the advertisements settings
|
void |
onReadConnectionSettings(int smallestAcceptableInterval,
int highestAcceptableInterval,
int connectionLatency,
int connectionLostTimeout)
is called when the user call readSettings from a SBeacon.
|
void |
onReadDeviceStatus(float battery,
float temperature,
short firmware)
is called when a SBeacon try to get the status of the beacon.
|
void |
onReadEddystoneUID(byte[] nameSpace,
byte[] instanceId)
reads from the device the EddystoneUID
|
void |
onReadEddystoneURL(java.lang.String URL)
is called when a SBeacon try to get the Eddystone URL.
|
void |
onReadFrameTypeConnectionRates(byte advertisementType,
byte connectable,
byte nonConnetable)
reads the connection rates of a specific beacon type
|
void |
onReadFrameTypeIntervalTxPower(byte advertisementType,
byte txEnergySaving,
byte txStandard,
float advEnergySaving,
float advStandard)
reads the tx power interval of specific beacon
|
void |
onReadIBeaconMajorAndMinor(int major,
int minor)
is called when a SBeacon try to get the IBeacon Major and Minor
|
void |
onReadIBeaconUUID(java.util.UUID uuid)
is called when a SBeacon try to get the IBeacon UUID.
|
void |
onReadTemperature(double temperature)
is called when there is a response
to the call of readTemperature() of a SBeacon.
|
void |
onSetAccelerometerConfiguration()
sets the accelerometer configuration
|
void |
onSetAdvertisementSettings(float disconnectInterval,
float disconnectTimeOut,
float energySavingTimeOut)
sets the advertisements settings
|
void |
onSetConnectionSettings(int smallestAcceptableInterval,
int highestAcceptableInterval,
int connectionLatency,
int connectionLostTimeout)
is called whe the user call setConnectionSettings
|
void |
onSetEddystoneUID(byte[] nameSpace,
byte[] instanceId)
is called when set the EddystoneUID
|
void |
onSetEddystoneURL(java.lang.String URL)
is called when a SBeacon try to get the Eddystone URL.
|
void |
onSetFrameTypeConnectionRates(byte advertisementType,
byte connectable,
byte nonConnetable)
sets the connection rates of a specific beacon type
|
void |
onSetFrameTypeIntervalTxPower(byte advertisementType,
byte txEnergySaving,
byte txStandard,
float advEnergySaving,
float advStandard)
sets the tx power interval of specific beacon
|
void |
onSetIBeaconMajorAndMinor(int major,
int minor)
is called when a SBeacon try to set the IBeacon Major and Minor
|
void |
onSetIBeaconUUID(java.util.UUID uuid)
is called when a SBeacon try to set the IBeacon UUID.
|
void |
onSetPassword(boolean success)
notify if the password was changed
|
void |
onUpdateFirmware(double progress)
This method notify any progress in the firmware update
When the progress value is 100% wait a few seconds to automatic disconnection.
|
void onConnect(boolean connected, boolean authenticated)
connected
- false or true if the Beacon is connected or not.void onDisconnect()
void onCommandToNotConnectedBeacon()
void onReadConnectionSettings(int smallestAcceptableInterval, int highestAcceptableInterval, int connectionLatency, int connectionLostTimeout)
smallestAcceptableInterval
- the smallest interval.highestAcceptableInterval
- the highest interval.connectionLatency
- the latency of teh connection.connectionLostTimeout
- timeout of te connection.void onSetConnectionSettings(int smallestAcceptableInterval, int highestAcceptableInterval, int connectionLatency, int connectionLostTimeout)
smallestAcceptableInterval
- highestAcceptableInterval
- connectionLatency
- connectionLostTimeout
- void onFailedToReadConnectionSettings()
void onFailedToSetConnectionSettings()
void onReadTemperature(double temperature)
temperature
- value of the temperaturevoid onFailedToReadTemperature()
void onConnectionExist()
void onReadIBeaconUUID(java.util.UUID uuid)
void onSetIBeaconUUID(java.util.UUID uuid)
void onFailedToReadIBeaconUUID()
void onFailedToSetIBeaconUUID()
void onReadIBeaconMajorAndMinor(int major, int minor)
void onSetIBeaconMajorAndMinor(int major, int minor)
void onFailedToReadIBeaconMajorAndMinor()
void onFailedToSetIBeaconMajorAndMinor()
void onReadEddystoneUID(byte[] nameSpace, byte[] instanceId)
void onSetEddystoneUID(byte[] nameSpace, byte[] instanceId)
void onFailedToReadEddystoneUID()
void onFailedToSetEddystoneUID()
void onReadEddystoneURL(java.lang.String URL)
void onSetEddystoneURL(java.lang.String URL)
void onFailedToReadEddystoneURL()
void onFailedToSetEddystoneURL()
void onReadDeviceStatus(float battery, float temperature, short firmware)
void onFailedToReadDeviceStatus()
void onReadFrameTypeIntervalTxPower(byte advertisementType, byte txEnergySaving, byte txStandard, float advEnergySaving, float advStandard)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypes (BCN_ADV_TYPE_SBEACON_V2 , BCN_ADV_TYPE_EDDYSTONE_UID, ...)
IBeacon.class, ...)txEnergySaving
- value in dBm unitstxStandard
- value in dBm unitsadvEnergySaving
- value in secondsadvStandard
- value in secondsAdvertisementTypes
void onSetFrameTypeIntervalTxPower(byte advertisementType, byte txEnergySaving, byte txStandard, float advEnergySaving, float advStandard)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypes (BCN_ADV_TYPE_SBEACON_V2 , BCN_ADV_TYPE_EDDYSTONE_UID, ...)
IBeacon.class, ...)txEnergySaving
- value in dBm unitstxStandard
- value in dBm unitsadvEnergySaving
- value in secondsadvStandard
- value in secondsAdvertisementTypes
void onFailedToReadFrameTypeIntervalTxPower()
void onFailedToSetFrameTypeIntervalTxPower()
void onSetFrameTypeConnectionRates(byte advertisementType, byte connectable, byte nonConnetable)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypes (BCN_ADV_TYPE_SBEACON_V2 , BCN_ADV_TYPE_EDDYSTONE_UID, ...)connectable
- connectable ratenonConnetable
- non-connectable ratevoid onReadFrameTypeConnectionRates(byte advertisementType, byte connectable, byte nonConnetable)
advertisementType
- use com.bluvision.beeks.sdk.constants.AdvertisementTypes (BCN_ADV_TYPE_SBEACON_V2 , BCN_ADV_TYPE_EDDYSTONE_UID, ...)connectable
- connectable ratenonConnetable
- non-connectable ratevoid onFailedToReadFrameTypeConnectionRates()
void onFailedToSetFrameTypeConnectionRates()
void onReadAdvertisementSettings(float disconnectInterval, float disconnectTimeOut, float energySavingTimeOut)
disconnectInterval
- disconnectTimeOut
- energySavingTimeOut
- void onSetAdvertisementSettings(float disconnectInterval, float disconnectTimeOut, float energySavingTimeOut)
disconnectInterval
- disconnectTimeOut
- energySavingTimeOut
- void onFailedToReadAdvertisementSettings()
void onFailedToSetAdvertisementSettings()
void onSetAccelerometerConfiguration()
void onFailedToSetAccelerometerConfiguration()
void onSetPassword(boolean success)
success
- void onUpdateFirmware(double progress)
progress
- value between (0% and 100%)void onFailedToUpdateFirmware(int status)
status
- Possible Values:
Firmware incompatible with the device
public static final int ERR_PARAMETER = 0x3001;
There is no firmware image to update
public static final int ERR_NOT_FOUND = 0x3002;
Firware not supporter by the device
public static final int ERR_NOT_SUPPORTED = 0x3005;
The firmware is not valid
public static final int ERR_CHECKSUM = 0x3006;
FIRMWARE IMAGE VERSION NEEDS TO BE GREATER THAN CURRENT INSTALLED VERSION
public static final int ERR_FIRMWARE_VERSION = 0x3007;
There is no connection to update the firmware or the status of he device is not valid
public static final int ERR_NOT_CONNECTED = 0x1100;
unknown error updating the firmware
public static final int ERR_IN_PROGRESS = 0x1101;FirmwareUpdateStatus