我是靠谱客的博主 无心导师,这篇文章主要介绍阿里云物联网(IoT)物模型数据规格定义,现在分享给大家,希望可以做个参考。

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"specs": { "min": "参数最小值(int、float、double类型特有)", "max": "参数最大值(int、float、double类型特有)", "unit": "属性单位(int、float、double类型特有,非必填)", "unitName": "单位名称(int、float、double类型特有,非必填)", "size": "数组元素的个数,最大512(array类型特有)。", "step": "步长(text、enum类型无此参数,int、float、double类型特有)", "length": "数据长度,最大10240(text类型特有)。", "0": "0的值(bool类型特有)", "1": "1的值(bool类型特有)", "item": { "dataType": "数组元素的类型(array类型特有)" } }
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"dataType": { "type": "array", "specs": { "size": "1000", "item": { "dataType": { "type": "text", "specs": { "rule": "", "length": 32 } } } } } }

示例:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"dataType":{ "type": "array", "specs": { "size": "200", "item": { "dataType": { "type": "struct", "specs": [ { "identifier": "sn", "ref": 1, "name": "设备序列号", "description": "", "dataType": { "type": "text", "specs": { "rule": "", "length": "64" } } }, { "identifier": "desc", "ref": 2, "name": "设备描述", "description": "", "dataType": { "type": "text", "specs": { "rule": "", "length": "64" } } }, { "identifier": "version", "ref": 3, "name": "设备版本", "description": "", "dataType": { "type": "int", "specs": { "range": [1, 255], "unit": "", "unitName": "", "step": "1" } } } ] } } } }
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ "specs": [ { "dataType": { "specs": { "step": 1 }, "type": "date" } }, { "dataType": { "specs": { "length": 128, "rule": "" }, "type": "text" } }, { "dataType": { "specs": [ { "dataType": { "specs": { "unit": "min", "range": [ 1, 2 ], "step": 1 }, "type": "int" } } ], "type": "struct" } } ], "type": "struct" }

最后

以上就是无心导师最近收集整理的关于阿里云物联网(IoT)物模型数据规格定义的全部内容,更多相关阿里云物联网(IoT)物模型数据规格定义内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(104)

评论列表共有 0 条评论

立即
投稿
返回
顶部