|
|
@@ -69,11 +69,9 @@ public class ExecutionServer {
|
|
|
}
|
|
|
}
|
|
|
public String ExecutionData(String data) {
|
|
|
- System.out.println("writer==================="+writer);
|
|
|
- System.out.println("reader==================="+reader);
|
|
|
try {
|
|
|
- String msg = "AT+STACH1=1\r\n";
|
|
|
- System.out.println("第1路闭合,发送指令:AT+STACH1=1\\r\\n");
|
|
|
+ String msg = "";
|
|
|
+ System.out.println("第1路闭合,发送指令:"+data);
|
|
|
//发送数据
|
|
|
writer.write(msg);
|
|
|
writer.flush();
|