dt.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # 文件统一定义
  2. [FILE]
  3. COPYRIGHT = /*
  4. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
  5. * Licensed under the MIT License (the "License"); you may not use this file except in
  6. * compliance with the License. You may obtain a copy of the License at
  7. * http://opensource.org/licenses/MIT
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License is
  9. * distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  10. * either express or implied. See the License for the specific language governing permissions and
  11. * limitations under the License.
  12. *
  13. */
  14. NAME_PREFIX = ble_qiot_template
  15. MACRO_PREFIX = BLE_QIOT_
  16. ENUM_PREFIX = BLE_QIOT_
  17. # json文本内健定义
  18. [JSON]
  19. VERSION = version
  20. PROPERTY = properties
  21. MODE = mode
  22. EVENT = events
  23. TYPE = type
  24. PARAMS = params
  25. ACTION = actions
  26. INPUT = input
  27. OUTPUT = output
  28. ID = id
  29. DEFINE = define
  30. MAPPING = mapping
  31. UNIT = unit
  32. BOOL = bool
  33. ENUM = enum
  34. STRING = string
  35. FLOAT = float
  36. INT = int
  37. TIME = timestamp
  38. STRUCT = struct
  39. SPECS = specs
  40. DATATYPE = dataType
  41. # 数据类型定义
  42. # 左侧数值表示实际数值,默认从0开始枚举
  43. # BUTT表示最大值
  44. [DATA_TYPE]
  45. 0 = BOOL
  46. 1 = INT
  47. 2 = STRING
  48. 3 = FLOAT
  49. 4 = ENUM
  50. 5 = TIME
  51. 6 = STRUCT
  52. 7 = BUTT
  53. # Property 读写属性定义
  54. # 左侧数值表示实际数值,默认从0开始枚举
  55. # BUTT表示最大值
  56. [PROPERTY_AUTH]
  57. 0 = RW
  58. 1 = READ
  59. 2 = BUTT
  60. # 数据功能,请求 or 回复
  61. # 左侧数值表示实际数值,默认从0开始枚举
  62. # BUTT表示最大值
  63. [EFFECT]
  64. 0= REQUEST
  65. 1 = REPLY
  66. 2 = BUTT