71 lines
1.5 KiB
Plaintext
71 lines
1.5 KiB
Plaintext
# 文件统一定义
|
||
[FILE]
|
||
COPYRIGHT = /*
|
||
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
|
||
* Licensed under the MIT License (the "License"); you may not use this file except in
|
||
* compliance with the License. You may obtain a copy of the License at
|
||
* http://opensource.org/licenses/MIT
|
||
* Unless required by applicable law or agreed to in writing, software distributed under the License is
|
||
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||
* either express or implied. See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*
|
||
*/
|
||
NAME_PREFIX = ble_qiot_template
|
||
MACRO_PREFIX = BLE_QIOT_
|
||
ENUM_PREFIX = BLE_QIOT_
|
||
|
||
# json文本内健定义
|
||
[JSON]
|
||
VERSION = version
|
||
PROPERTY = properties
|
||
MODE = mode
|
||
EVENT = events
|
||
TYPE = type
|
||
PARAMS = params
|
||
ACTION = actions
|
||
INPUT = input
|
||
OUTPUT = output
|
||
ID = id
|
||
DEFINE = define
|
||
MAPPING = mapping
|
||
UNIT = unit
|
||
BOOL = bool
|
||
ENUM = enum
|
||
STRING = string
|
||
FLOAT = float
|
||
INT = int
|
||
TIME = timestamp
|
||
STRUCT = struct
|
||
SPECS = specs
|
||
DATATYPE = dataType
|
||
|
||
# 数据类型定义
|
||
# 左侧数值表示实际数值,默认从0开始枚举
|
||
# BUTT表示最大值
|
||
[DATA_TYPE]
|
||
0 = BOOL
|
||
1 = INT
|
||
2 = STRING
|
||
3 = FLOAT
|
||
4 = ENUM
|
||
5 = TIME
|
||
6 = STRUCT
|
||
7 = BUTT
|
||
|
||
# Property 读写属性定义
|
||
# 左侧数值表示实际数值,默认从0开始枚举
|
||
# BUTT表示最大值
|
||
[PROPERTY_AUTH]
|
||
0 = RW
|
||
1 = READ
|
||
2 = BUTT
|
||
|
||
# 数据功能,请求 or 回复
|
||
# 左侧数值表示实际数值,默认从0开始枚举
|
||
# BUTT表示最大值
|
||
[EFFECT]
|
||
0= REQUEST
|
||
1 = REPLY
|
||
2 = BUTT
|