-
Notifications
You must be signed in to change notification settings - Fork 0
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
heterodain
committed
Sep 28, 2020
1 parent
7c6db6d
commit a3b4db9
Showing
6 changed files
with
111 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"smartMeter": { | ||
"comPort": "ttyUSB0", | ||
"brouteId": "************", | ||
"broutePassword": "*********************************" | ||
}, | ||
"ambient": { | ||
"channelId": 99999, | ||
"readKey": "****************", | ||
"writeKey": "****************" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.heterodain.smartmeter.model; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* 電力情報 | ||
*/ | ||
@Data | ||
public class Power { | ||
// 瞬時電力(W) | ||
private Long instantPower; | ||
// R相電流(0.1A) | ||
private Long instantRAmp; | ||
// T相電流(0.1A) | ||
private Long instantTAmp; | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/com/heterodain/smartmeter/model/Settings.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,44 @@ | ||
package com.heterodain.smartmeter.model; | ||
|
||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
/** | ||
* 設定情報 | ||
*/ | ||
@Getter | ||
@ToString | ||
public class Settings { | ||
// スマートメーターの設定 | ||
private SmartMeter smartMeter; | ||
// Ambientの設定 | ||
private Ambient ambient; | ||
|
||
/** | ||
* スマートメーターの設定情報 | ||
*/ | ||
@Getter | ||
@ToString | ||
public static class SmartMeter { | ||
// シリアル通信ポート名 | ||
private String comPort; | ||
// BルートID | ||
private String brouteId; | ||
// Bルートパスワード | ||
private String broutePassword; | ||
} | ||
|
||
/** | ||
* Ambientの設定情報 | ||
*/ | ||
@Getter | ||
@ToString | ||
public static class Ambient { | ||
// チャネルID | ||
private Integer channelId; | ||
// リードキー | ||
private String readKey; | ||
// ライトキー | ||
private String writeKey; | ||
} | ||
} |