类 BleHandle

  • 所有已实现的接口:
    ConnectHandle

    public class BleHandle
    extends java.lang.Object
    implements ConnectHandle
    inlaylink 20240511
    • 构造器概要

      构造器 
      构造器 说明
      BleHandle​(android.content.Context context, java.lang.String address)
      Instantiates a new Ble handle.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean connect()
      连接读写器
      void disconnect()
      断开连接
      boolean isConnected()
      读写器连接状态
      void onReceive​(Consumer<byte[]> consumer)
      数据接收
      void send​(byte[] data)
      发送数据
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • BleHandle

        public BleHandle​(android.content.Context context,
                         java.lang.String address)
        Instantiates a new Ble handle.
        参数:
        context - the context
        address - the address