SD-211 - show all recordings and play them

This commit is contained in:
2022-03-30 10:34:57 +03:00
parent 8bb6f36e60
commit 3f96055a6e
12 changed files with 283 additions and 250 deletions

View File

@ -293,7 +293,7 @@ public class TCPhandler implements Runnable {
/**
* Send a message through the TCP Socket
*
* @param seqID The messages's sequence ID (a number of order)
* @param seqID The messages's sequence id (a number of order)
* @param msg The messages which will be sent
* @return True if the message was sent
*/
@ -310,7 +310,7 @@ public class TCPhandler implements Runnable {
cmdok = "#" + Integer.toString(tmp) + cmdok;
byte[] mess = encryptTEA(cmdok);
Thread gfgThread = new Thread(() -> {
Thread tcpThread = new Thread(() -> {
try {
output.write(mess);
output.flush();
@ -319,15 +319,14 @@ public class TCPhandler implements Runnable {
}
});
gfgThread.start();
tcpThread.start();
SM.Debug(" ", new String(mess));
return true;
//} catch (IOException e) {
// SM.Exception("TCPClient[Send]", e.toString());
} catch (InterruptedException e) {
SM.Exception("TCPClient[Send]", e.toString());
Thread.currentThread().interrupt();
} catch (NoSuchElementException e) {
SM.Exception("TCPClient[Send]", e.toString());
}
@ -335,7 +334,7 @@ public class TCPhandler implements Runnable {
return false;
}
} catch (Exception e) {
SM.Debug("TCPhandler Write Procedure:" + e.toString());
SM.Debug("TCPhandler Write Procedure:" + e);
}
return false;
}