Class BleCentral

java.lang.Object
com.codename1.bluetooth.le.server.BleCentral

public abstract class BleCentral extends Object
A remote central connected to the local GattServer -- the mirror image of BlePeripheral when this device acts as the peripheral.
  • Constructor Details

    • BleCentral

      protected BleCentral()
      Constructed by ports; not application API.
  • Method Details

    • getAddress

      public abstract String getAddress()
      A stable identifier of the connected central (platform-specific, same semantics as BluetoothDevice.getAddress()).
    • getMtu

      public int getMtu()
      The MTU negotiated with this central; 23 until negotiated higher.
    • setMtu

      protected void setMtu(int mtu)
      Records the negotiated MTU; called by ports.