public class BeaconConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.Integer> |
ALLOWED_POWER_LEVELS |
boolean |
mCurrentIsJaaleeNewBeacon |
| Constructor and Description |
|---|
BeaconConnection(Context context,
Beacon beacon,
ConnectionCallback connectionCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
CallBeacon()
Call current Beacon
|
void |
ChangePassword(java.lang.String NewPsaaword,
WriteCallback writeCallback)
Configure the password of the beacon
|
void |
connectBeaconWithPassword(java.lang.String password)
Starts connection flow to device with password.
|
void |
disconnect()
Disconnect with the beacon
|
boolean |
isConnected() |
void |
writeAdvertisingInterval(int BroadcastInterval,
WriteCallback writeCallback)
Config beacon's Broadcast Interval
|
void |
writeBeaconAudioState(int state,
WriteCallback writeCallback)
Set Audio state
|
void |
writeBeaconName(java.lang.String name,
WriteCallback writeCallback)
Config Beacon's device name
|
void |
writeBeaconState(int state,
WriteCallback writeCallback)
Set Beacon State
|
void |
writeBeaconTxPower(int state,
WriteCallback writeCallback)
Changes broadcasting power of the beacon.
|
void |
writeBroadcastingPowerValue(int power,
WriteCallback writeCallback)
Changes Beacon Power value.
|
void |
writeMajor(int major,
WriteCallback writeCallback)
Changes major value of the beacon.
|
void |
writeMinor(int minor,
WriteCallback writeCallback)
Changes minor value of the beacon.
|
void |
writeProximityUuid(java.lang.String proximityUuid,
WriteCallback writeCallback)
Config beacon's proximity uuid
|
public static java.util.Set<java.lang.Integer> ALLOWED_POWER_LEVELS
public boolean mCurrentIsJaaleeNewBeacon
public BeaconConnection(Context context,
Beacon beacon,
ConnectionCallback connectionCallback)
public void connectBeaconWithPassword(java.lang.String password)
password - The passwordpublic void disconnect()
public boolean isConnected()
public void CallBeacon()
public void ChangePassword(java.lang.String NewPsaaword,
WriteCallback writeCallback)
NewPsaaword - The password want change towriteCallback - Callback to be invoked when write is completed.public void writeProximityUuid(java.lang.String proximityUuid,
WriteCallback writeCallback)
proximityUuid - The UUID want to change towriteCallback - Callback to be invoked when write is completed.public void writeAdvertisingInterval(int BroadcastInterval,
WriteCallback writeCallback)
BroadcastInterval - Advertising interval in milliseconds (100ms-10000ms).writeCallback - Callback to be invoked when write is completed.public void writeBroadcastingPowerValue(int power,
WriteCallback writeCallback)
powerDBM - Beacon's measured power to be set.writeCallback - Callback to be invoked when write is completed.public void writeMajor(int major,
WriteCallback writeCallback)
major - Major value to be set.writeCallback - Callback to be invoked when write is completed.public void writeMinor(int minor,
WriteCallback writeCallback)
minor - Minor value to be set.writeCallback - Callback to be invoked when write is completed.public void writeBeaconState(int state,
WriteCallback writeCallback)
state - The state of beaconwriteCallback - Callback to be invoked when write is completed.public void writeBeaconAudioState(int state,
WriteCallback writeCallback)
state - The audio state of beaconwriteCallback - Callback to be invoked when write is completed.public void writeBeaconTxPower(int state,
WriteCallback writeCallback)
state - The Tx Power of the beaconwriteCallback - Callback to be invoked when write is completed.public void writeBeaconName(java.lang.String name,
WriteCallback writeCallback)
name - the name of the beacon,like "jaalee"writeCallback - Callback to be invoked when write is completed.