client.java

来自「一个基于sensor的中间件」· Java 代码 · 共 30 行

JAVA
30
字号
package Application;

import java.io.*;
import java.net.*;
import java.util.*;
import javax.comm.*;

public class Client implements Runnable, SerialPortEventListener {

    static CommPortIdentifier portId;
//    static CommPortIdentifier portId1;
    static OutputStream outputStream;
    static OutputStream outputStream2;
    Thread readThread;
//	Thread readThread2;
    static Enumeration portList;
    InputStream inputStream;
    static SerialPort serialPort;
    static SerialPort serialPort1;
    static BufferedReader buf;
    static PrintWriter toServer;

    public static void main(String[] args) throws IOException {
        Ircontrol rcontrol = new Ircontrol();
        Plccontrol pcontrol = new Plccontrol();
        Delay delay = new Delay();
        int maxarrnum = 1;
        String query[];
        query = new String[maxarrnum];
        query[0] = "query鈾

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?