forked from iotoasis/SO
-
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
Showing
8 changed files
with
248 additions
and
5 deletions.
There are no files selected for viewing
165 changes: 165 additions & 0 deletions
165
so-device/src/main/java/com/pineone/icbms/so/device/entity/LWM2MDeviceControl.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,165 @@ | ||
package com.pineone.icbms.so.device.entity; | ||
|
||
/** | ||
* LWM2M SO-SI Interface | ||
* con 값으로 base64 인코딩후 추가. | ||
*/ | ||
public class LWM2MDeviceControl { | ||
// | ||
/** | ||
* 값 : execute | ||
* 설명 : 고정 | ||
*/ | ||
private String operation; | ||
|
||
/** | ||
* 값 : /1024/12/1, /1024/12/3 중 제어 희망하는 항목 택1 | ||
* 설명 : LED : /1024/12/1, SOUND : /1024/12/3 | ||
*/ | ||
private String resourceUri; | ||
|
||
/** | ||
* 값 : led, sound 중 제어 희망하는 항목 택1 | ||
* 설명 : | ||
*/ | ||
private String displayName; | ||
|
||
/** | ||
* 값 : 000001 | ||
* 설명 : 디바이스 제조사 넘버 | ||
*/ | ||
private String oui; | ||
|
||
/** | ||
* 값 : LWM2M Client(raspberry) | ||
* 설명 : 디바이스 모델 이름 | ||
*/ | ||
private String modelName; | ||
|
||
/** | ||
* 값 : 90:9F:33:EF:D8:ED | ||
* 설명 : 디바이스 시리얼 넘버 | ||
*/ | ||
private String sn; | ||
|
||
/** | ||
* 값 : testlwm2mclient | ||
* 설명 : 고정 | ||
*/ | ||
private String authld; | ||
|
||
/** | ||
* 값 : 1234567890abcdef1234567890abcdef | ||
* 설명 : 고정 | ||
*/ | ||
private String authPwd; | ||
|
||
/** | ||
* 값 : 1 | ||
* 설명 : 제어 값 | ||
*/ | ||
private String sv; | ||
|
||
public LWM2MDeviceControl() { | ||
} | ||
|
||
public LWM2MDeviceControl(String operation, String resourceUri, String displayName, String oui, String modelName, String sn, String authld, String authPwd, String sv) { | ||
this.operation = operation; | ||
this.resourceUri = resourceUri; | ||
this.displayName = displayName; | ||
this.oui = oui; | ||
this.modelName = modelName; | ||
this.sn = sn; | ||
this.authld = authld; | ||
this.authPwd = authPwd; | ||
this.sv = sv; | ||
} | ||
|
||
public String getOperation() { | ||
return operation; | ||
} | ||
|
||
public void setOperation(String operation) { | ||
this.operation = operation; | ||
} | ||
|
||
public String getResourceUri() { | ||
return resourceUri; | ||
} | ||
|
||
public void setResourceUri(String resourceUri) { | ||
this.resourceUri = resourceUri; | ||
} | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
|
||
public void setDisplayName(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
|
||
public String getOui() { | ||
return oui; | ||
} | ||
|
||
public void setOui(String oui) { | ||
this.oui = oui; | ||
} | ||
|
||
public String getModelName() { | ||
return modelName; | ||
} | ||
|
||
public void setModelName(String modelName) { | ||
this.modelName = modelName; | ||
} | ||
|
||
public String getSn() { | ||
return sn; | ||
} | ||
|
||
public void setSn(String sn) { | ||
this.sn = sn; | ||
} | ||
|
||
public String getAuthld() { | ||
return authld; | ||
} | ||
|
||
public void setAuthld(String authld) { | ||
this.authld = authld; | ||
} | ||
|
||
public String getAuthPwd() { | ||
return authPwd; | ||
} | ||
|
||
public void setAuthPwd(String authPwd) { | ||
this.authPwd = authPwd; | ||
} | ||
|
||
public String getSv() { | ||
return sv; | ||
} | ||
|
||
public void setSv(String sv) { | ||
this.sv = sv; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "LWM2MDeviceControl{" + | ||
"operation='" + operation + '\'' + | ||
", resourceUri='" + resourceUri + '\'' + | ||
", displayName='" + displayName + '\'' + | ||
", oui='" + oui + '\'' + | ||
", modelName='" + modelName + '\'' + | ||
", sn='" + sn + '\'' + | ||
", authld='" + authld + '\'' + | ||
", authPwd='" + authPwd + '\'' + | ||
", sv='" + sv + '\'' + | ||
'}'; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
so-device/src/main/java/com/pineone/icbms/so/device/entity/LWM2MProfile.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,6 @@ | ||
package com.pineone.icbms.so.device.entity; | ||
|
||
public class LWM2MProfile { | ||
// | ||
public static final String SO_CONTROL_TYPE = "text/plain:0"; | ||
} |
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