Skip to content

Commit

Permalink
Removed serverIP from the method parameters for the thermostat's send…
Browse files Browse the repository at this point in the history
…Info
  • Loading branch information
pid1 committed Apr 24, 2015
1 parent 40c76ee commit bb69314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/networking/ThermostatNetworking.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -68,7 +68,7 @@ public void updateIP(int sendMulticastPORT) throws Exception {
socket.send(packet);
}
} finally {

updateIP
}
}

Expand Down

0 comments on commit bb69314

Please sign in to comment.