-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f31be0
commit e738a29
Showing
14 changed files
with
251 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...toring-service/Server/src/main/java/org/mqttserver/presentation/MessageFromDashboard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.mqttserver.presentation; | ||
|
||
|
||
/*The message sent by Dashboard using POST method in HTTP Server*/ | ||
|
||
public class MessageFromDashboard { | ||
private final int valveValue; | ||
|
||
public MessageFromDashboard(int valveValue) { | ||
this.valveValue = valveValue; | ||
} | ||
public int getValveValue() { | ||
return valveValue; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 24 additions & 4 deletions
28
...nitoring-service/Server/src/main/java/org/mqttserver/presentation/MessageToDashboard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
package org.mqttserver.presentation; | ||
|
||
|
||
/** | ||
* This class contains the representation of the JSON message to send to dashboard by | ||
* HTTPServer. TODO: TO DEFINE THE MESSAGE | ||
* */ | ||
public class MessageToDashboard { | ||
|
||
private float WL; | ||
private Status status; | ||
|
||
private int valveValue; | ||
|
||
public MessageToDashboard(float WL, Status status, int valveValue) { | ||
this.WL = WL; | ||
this.status = status; | ||
this.valveValue = valveValue; | ||
} | ||
|
||
public float getWL() { | ||
return WL; | ||
} | ||
|
||
public Status getStatus() { | ||
return status; | ||
} | ||
|
||
public int getValveValue() { | ||
return valveValue; | ||
} | ||
|
||
} |
36 changes: 0 additions & 36 deletions
36
river-monitoring-service/Server/src/main/java/org/mqttserver/presentation/SerialMessage.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.