Skip to content

Commit

Permalink
feat: aliyun(console)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgiot-fe committed Mar 15, 2022
1 parent 720c7d7 commit 93c7484
Show file tree
Hide file tree
Showing 12 changed files with 21,426 additions and 8 deletions.
2,409 changes: 2,409 additions & 0 deletions apps/dgiot_dlink/priv/json/Category.json

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions apps/dgiot_dlink/priv/json/thing-lite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"properties": [
{
"identifier": "GeoLocation",
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "Longitude",
"dataType": {
"type": "double"
}
},
{
"identifier": "Latitude",
"dataType": {
"type": "double"
}
},
{
"identifier": "Altitude",
"dataType": {
"type": "double"
}
},
{
"identifier": "CoordinateSystem",
"dataType": {
"type": "enum"
}
}
]
}
}
]
}
234 changes: 234 additions & 0 deletions apps/dgiot_dlink/priv/json/thing-tsl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
{
"schema": "https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json",
"profile": {
"version": "1.0",
"productKey": "a11Ecu7de6V"
},
"properties": [
{
"identifier": "GeoLocation",
"name": "地理位置",
"accessMode": "r",
"required": true,
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "Longitude",
"name": "经度",
"dataType": {
"type": "double",
"specs": {
"min": "-180",
"max": "180",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Latitude",
"name": "纬度",
"dataType": {
"type": "double",
"specs": {
"min": "-90",
"max": "90",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Altitude",
"name": "海拔",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "m",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "CoordinateSystem",
"name": "坐标系统",
"dataType": {
"type": "enum",
"specs": {
"1": "WGS_84",
"2": "GCJ_02"
}
}
}
]
}
}
],
"events": [
{
"identifier": "post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报",
"method": "thing.event.property.post",
"outputData": [
{
"identifier": "GeoLocation",
"name": "地理位置",
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "Longitude",
"name": "经度",
"dataType": {
"type": "double",
"specs": {
"min": "-180",
"max": "180",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Latitude",
"name": "纬度",
"dataType": {
"type": "double",
"specs": {
"min": "-90",
"max": "90",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Altitude",
"name": "海拔",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "m",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "CoordinateSystem",
"name": "坐标系统",
"dataType": {
"type": "enum",
"specs": {
"1": "WGS_84",
"2": "GCJ_02"
}
}
}
]
}
}
]
}
],
"services": [
{
"identifier": "set",
"name": "set",
"required": true,
"callType": "async",
"desc": "属性设置",
"method": "thing.service.property.set",
"inputData": [],
"outputData": []
},
{
"identifier": "get",
"name": "get",
"required": true,
"callType": "async",
"desc": "属性获取",
"method": "thing.service.property.get",
"inputData": [
"GeoLocation"
],
"outputData": [
{
"identifier": "GeoLocation",
"name": "地理位置",
"dataType": {
"type": "struct",
"specs": [
{
"identifier": "Longitude",
"name": "经度",
"dataType": {
"type": "double",
"specs": {
"min": "-180",
"max": "180",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Latitude",
"name": "纬度",
"dataType": {
"type": "double",
"specs": {
"min": "-90",
"max": "90",
"unit": "°",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "Altitude",
"name": "海拔",
"dataType": {
"type": "double",
"specs": {
"min": "0",
"max": "9999",
"unit": "m",
"unitName": "",
"step": "0.01"
}
}
},
{
"identifier": "CoordinateSystem",
"name": "坐标系统",
"dataType": {
"type": "enum",
"specs": {
"1": "WGS_84",
"2": "GCJ_02"
}
}
}
]
}
}
]
}
]
}
Loading

0 comments on commit 93c7484

Please sign in to comment.