From bb6931438ad25d0fe24378dc39f5b78dedeb8ab2 Mon Sep 17 00:00:00 2001 From: Jonathan Roemer Date: Fri, 24 Apr 2015 13:31:27 -0400 Subject: [PATCH] Removed serverIP from the method parameters for the thermostat's sendInfo --- src/networking/ThermostatNetworking.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }