diff --git a/src/networking/ThermostatNetworking.java b/src/networking/ThermostatNetworking.java index 7c5c6a3..a3eedd6 100644 --- a/src/networking/ThermostatNetworking.java +++ b/src/networking/ThermostatNetworking.java @@ -38,7 +38,7 @@ public void receiveDesiredTemp(int receiveDesiredTempPORT) throws Exception { } // Sends the current temperature on port sendCurrentTempPORT - public void sendInfo(int sendCurrentTempPORT, int currentTemperature, String serverIP) + public void sendInfo(int sendCurrentTempPORT, int currentTemperature) throws Exception { // Open a sending port Socket sender = new Socket(serverIP, sendCurrentTempPORT); @@ -68,7 +68,7 @@ public void updateIP(int sendMulticastPORT) throws Exception { socket.send(packet); } } finally { - + updateIP } }