public abstract static class IBeacon.Callbacks extends java.lang.Object implements MetaWearController.ModuleCallbacks
Constructor and Description |
---|
IBeacon.Callbacks() |
Modifier and Type | Method and Description |
---|---|
Module |
getModule()
Get the module the notification represents
|
void |
receivedEnableState(byte state)
Called when the enable state has been read
|
void |
receivedMajor(short value)
Called when the major number has been read
|
void |
receivedMinor(short value)
Called when the minor number has been read
|
void |
receivedPeriod(short period)
Called when the advertising period has been read
|
void |
receivedRXPower(byte power)
Called when the calibrated receiving power has been read
|
void |
receivedTXPower(byte power)
Called when the transmitting power has been read
|
void |
receivedUUID(java.util.UUID uuid)
Called when the advertisement UUID has been read
|
public final Module getModule()
MetaWearController.ModuleCallbacks
getModule
in interface MetaWearController.ModuleCallbacks
Module
public void receivedEnableState(byte state)
state
- 0 if disabled, 1 if enabledpublic void receivedUUID(java.util.UUID uuid)
uuid
- Advertisement UUIDpublic void receivedMajor(short value)
value
- Value of the major numberpublic void receivedMinor(short value)
value
- Value of the minor numberpublic void receivedRXPower(byte power)
power
- Calibrated receive power, default is -55dBmpublic void receivedTXPower(byte power)
power
- Transmitting power, default is 0dBmpublic void receivedPeriod(short period)
period
- Advertising period in milliseconds