Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Main Activity
- @BindView(R.id.logFieldTV) TextView logsTextView;
- .
- .
- .
- @OnClick(R.id.a1)
- public void a1() {
- try {
- switch (a1.getText().toString()) {
- case Define.STATUS_ARM_DISP_HOR:
- /*/ ---- TUTAJ DODAJESZ PARAMETR ---- /*/
- communication.sendWiFiMessage(logsTextView, "CCY+ARM[1," + Define.STATUS_ARM_VAL_VER);
- break;
- case Define.STATUS_ARM_DISP_VER:
- /*/ ---- TUTAJ DODAJESZ PARAMETR ---- /*/
- communication.sendWiFiMessage(logsTextView, "CCY+ARM[1" + Define.STATUS_ARM_VAL_HOR);
- break;
- default:
- logUpdate("Something wrong with ARM 1");
- }
- }catch (Exception e){}
- }
- /*/--------------------------------------/*/
- // Klasa Communication
- void sendWiFiMessage(TextView logTextView, String msg) {
- try {
- OutputStreamWriter osw = new OutputStreamWriter(wiFiSocket.getOutputStream(), "UTF-8");
- logTextView.appendCostam(msg);
- // new MainActivity().logUpdate(msg);
- osw.write(msg);
- osw.flush();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement