Class ZBeacon


  • public class ZBeacon
    extends Object
    • Field Detail

      • mRssi

        protected int mRssi
        The measured signal strength of the Bluetooth packet that led do this Beacon detection.
      • mTxPower

        protected int mTxPower
        The calibrated measured Tx power of the Beacon in RSSI This value is baked into an Beacon when it is manufactured, and it is transmitted with each packet to aid in the mDistance estimate
      • mBluetoothAddress

        protected String mBluetoothAddress
        The Bluetooth mac address
    • Constructor Detail

      • ZBeacon

        public ZBeacon​(String UUID)
      • ZBeacon

        public ZBeacon​(String name,
                       String UUID,
                       int major,
                       int minor)
    • Method Detail

      • getState

        public int getState()
      • setState

        public void setState​(int state)
      • getLastSeen

        public long getLastSeen()
      • setLastSeen

        public void setLastSeen​(long lastSeen)
      • getRssi

        public int getRssi()
      • setRssi

        public void setRssi​(int mRssi)
      • getTxPower

        public int getTxPower()
      • setTxPower

        public void setTxPower​(int mTxPower)
      • getBluetoothAddress

        public String getBluetoothAddress()
      • setBluetoothAddress

        public void setBluetoothAddress​(String mBluetoothAddress)
      • getUUID

        public String getUUID()
      • setMajor

        public void setMajor​(int major)
      • setMinor

        public void setMinor​(int minor)
      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()
      • getDistance

        public double getDistance()
      • setDistance

        public void setDistance​(double distance)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object