com.gprinter.io

类 EthernetPort



  • public class EthernetPort
    extends GpPort
    • 构造器详细资料

      • EthernetPort

        public EthernetPort(int id,
                            java.lang.String Ip,
                            int Port,
                            Handler handler)
        Constructor. Prepares a new BTPrinter session.
        参数:
        context - The UI Activity Context
        handler - A Handler to send messages back to the UI Activity
    • 方法详细资料

      • connect

        public void connect()
        Start the ConnectThread to initiate a connection to a remote device.
        参数:
        device - The BluetoothDevice to connect
      • connected

        public void connected(java.net.Socket socket,
                              java.lang.String ip)
        Start the ConnectedThread to begin managing a Bluetooth connection
        参数:
        socket - The BluetoothSocket on which the connection was made
        device - The BluetoothDevice that has been connected
      • stop

        public void stop()
        Stop all threads
      • writeDataImmediately

        public GpCom.ERROR_CODE writeDataImmediately(java.util.Vector<java.lang.Byte> data)
文档更新时间: 2020-04-29 16:32   作者:Gainscha佳博