diff --git a/app/src/BluetoothJavaServer/src/edu/kufpg/bluetooth/server/BluetoothThread.java b/app/src/BluetoothJavaServer/src/edu/kufpg/bluetooth/server/BluetoothThread.java index 52b229a101055965a5eaa5ababe6faf7108a5d64..935915b22d982a7af1aad70887e601d7348b9ed2 100644 --- a/app/src/BluetoothJavaServer/src/edu/kufpg/bluetooth/server/BluetoothThread.java +++ b/app/src/BluetoothJavaServer/src/edu/kufpg/bluetooth/server/BluetoothThread.java @@ -29,20 +29,14 @@ public class BluetoothThread extends Thread { } @Override - public void run() { - System.out.println("hey c parti"); + public void run() { while (keepGoing) { - System.out.println("hi"); byte b; try { // Each packet must start with two SYNC bytes in a row - - - System.out.println("New packet found"); - byte[] payload = new byte[100]; + byte[] payload = new byte[16]; connection.getInputStream().read(payload); this.buffer = new String(payload, StandardCharsets.UTF_8); - System.out.println("payload : " + this.buffer); notifyObserver(); //connection.getOutputStream().write("SOUND".getBytes()); diff --git a/app/src/Vue/FXMLVue.fxml b/app/src/Vue/FXMLVue.fxml index ce1d3641cd09927b90bcd4accd6588f69c57e454..0a5958ce04b3bb88838afca0ee5003b8273ecf55 100644 --- a/app/src/Vue/FXMLVue.fxml +++ b/app/src/Vue/FXMLVue.fxml @@ -27,10 +27,10 @@ <Label text="La plante qui pleure" textAlignment="CENTER" GridPane.halignment="CENTER"> <font> <Font name="Trebuchet MS Bold" size="28.0" /> - </font>gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg + </font> </Label> <GridPane fx:id="accueil" style="-fx-background-color: white;" GridPane.rowIndex="1"> - <columnConstragggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggints> + <columnConstraints> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="-Infinity" minWidth="10.0" prefWidth="20.0" /> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />