1 /* 2 * SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef _DEVICE_PROPERTY_H_ 8 #define _DEVICE_PROPERTY_H_ 9 10 #include "mesh_types.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /** 17 * Details of BLE Mesh Device Properties. 18 * Note: For the size of the corresponding characteristic, please refer to the GATT_Specification_Supplement_v2. 19 * 20 * |----------------------------------------------------------|--------|-------------------------------------------|------| 21 * | Device Property Name | ID | Characteristic | Size | 22 * |----------------------------------------------------------|--------|-------------------------------------------|------| 23 * | Average Ambient Temperature In A Period Of Day | 0x0001 | Temperature 8 In A Period Of Day | 3 | 24 * |----------------------------------------------------------|--------|-------------------------------------------|------| 25 * | Average Input Current | 0x0002 | Average Current | 3 | 26 * |----------------------------------------------------------|--------|-------------------------------------------|------| 27 * | Average Input Voltage | 0x0003 | Average Voltage | 3 | 28 * |----------------------------------------------------------|--------|-------------------------------------------|------| 29 * | Average Output Current | 0x0004 | Average Current | 3 | 30 * |----------------------------------------------------------|--------|-------------------------------------------|------| 31 * | Average Output Voltage | 0x0005 | Average Voltage | 3 | 32 * |----------------------------------------------------------|--------|-------------------------------------------|------| 33 * | Center Beam Intensity At Full Power | 0x0006 | Luminous Intensity | 2 | 34 * |----------------------------------------------------------|--------|-------------------------------------------|------| 35 * | Chromaticity Tolerance | 0x0007 | Chromaticity Tolerance | 1 | 36 * |----------------------------------------------------------|--------|-------------------------------------------|------| 37 * | Color Rendering Index R9 | 0x0008 | Cie 13.3-1995 Color Rendering Index | 1 | 38 * |----------------------------------------------------------|--------|-------------------------------------------|------| 39 * | Color Rendering Index Ra | 0x0009 | Cie 13.3-1995 Color Rendering Index | 1 | 40 * |----------------------------------------------------------|--------|-------------------------------------------|------| 41 * | Device Appearance | 0x000A | Gap.Appearance | 2 | 42 * |----------------------------------------------------------|--------|-------------------------------------------|------| 43 * | Device Country Of Origin | 0x000B | Country Code | 2 | 44 * |----------------------------------------------------------|--------|-------------------------------------------|------| 45 * | Device Date Of Manufacture | 0x000C | Date UTC | 3 | 46 * |----------------------------------------------------------|--------|-------------------------------------------|------| 47 * | Device Energy Use Since Turn On | 0x000D | Energy | 3 | 48 * |----------------------------------------------------------|--------|-------------------------------------------|------| 49 * | Device Firmware Revision | 0x000E | Fixed String 8 | 8 | 50 * |----------------------------------------------------------|--------|-------------------------------------------|------| 51 * | Device Global Trade Item Number | 0x000F | Global Trade Item Number | 6 | 52 * |----------------------------------------------------------|--------|-------------------------------------------|------| 53 * | Device Hardware Revision | 0x0010 | Fixed String 16 | 16 | 54 * |----------------------------------------------------------|--------|-------------------------------------------|------| 55 * | Device Manufacturer Name | 0x0011 | Fixed String 36 | 36 | 56 * |----------------------------------------------------------|--------|-------------------------------------------|------| 57 * | Device Model Number | 0x0012 | Fixed String 24 | 24 | 58 * |----------------------------------------------------------|--------|-------------------------------------------|------| 59 * | Device Operating Temperature Range Specification | 0x0013 | Temperature Range | 4 | 60 * |----------------------------------------------------------|--------|-------------------------------------------|------| 61 * | Device Operating Temperature Statistical Values | 0x0014 | Temperature Statistics | 9 | 62 * |----------------------------------------------------------|--------|-------------------------------------------|------| 63 * | Device Over Temperature Event Statistics | 0x0015 | Event Statistics | 6 | 64 * |----------------------------------------------------------|--------|-------------------------------------------|------| 65 * | Device Power Range Specification | 0x0016 | Power Specification | 9 | 66 * |----------------------------------------------------------|--------|-------------------------------------------|------| 67 * | Device Runtime Since Turn On | 0x0017 | Time Hour 24 | 3 | 68 * |----------------------------------------------------------|--------|-------------------------------------------|------| 69 * | Device Runtime Warranty | 0x0018 | Time Hour 24 | 3 | 70 * |----------------------------------------------------------|--------|-------------------------------------------|------| 71 * | Device Serial Number | 0x0019 | Fixed String 16 | 16 | 72 * |----------------------------------------------------------|--------|-------------------------------------------|------| 73 * | Device Software Revision | 0x001A | Fixed String 8 | 8 | 74 * |----------------------------------------------------------|--------|-------------------------------------------|------| 75 * | Device Under Temperature Event Statistics | 0x001B | Event Statistics | 6 | 76 * |----------------------------------------------------------|--------|-------------------------------------------|------| 77 * | Indoor Ambient Temperature Statistical Values | 0x001C | Temperature 8 Statistics | 5 | 78 * |----------------------------------------------------------|--------|-------------------------------------------|------| 79 * | Initial CIE 1931 Chromaticity Coordinates | 0x001D | Chromaticity Coordinates | 4 | 80 * |----------------------------------------------------------|--------|-------------------------------------------|------| 81 * | Initial Correlated Color Temperature | 0x001E | Correlated Color Temperature | 2 | 82 * |----------------------------------------------------------|--------|-------------------------------------------|------| 83 * | Initial Luminous Flux | 0x001F | Luminous Flux | 2 | 84 * |----------------------------------------------------------|--------|-------------------------------------------|------| 85 * | Initial Planckian Distance | 0x0020 | Chromatic Distance From Planckian | 2 | 86 * |----------------------------------------------------------|--------|-------------------------------------------|------| 87 * | Input Current Range Specification | 0x0021 | Electric Current Specification | 6 | 88 * |----------------------------------------------------------|--------|-------------------------------------------|------| 89 * | Input Current Statistics | 0x0022 | Electric Current Statistics | 9 | 90 * |----------------------------------------------------------|--------|-------------------------------------------|------| 91 * | Input Over Current Event Statistics | 0x0023 | Event Statistics | 6 | 92 * |----------------------------------------------------------|--------|-------------------------------------------|------| 93 * | Input Over Ripple Voltage Event Statistics | 0x0024 | Event Statistics | 6 | 94 * |----------------------------------------------------------|--------|-------------------------------------------|------| 95 * | Input Over Voltage Event Statistics | 0x0025 | Event Statistics | 6 | 96 * |----------------------------------------------------------|--------|-------------------------------------------|------| 97 * | Input Under Current Event Statistics | 0x0026 | Event Statistics | 6 | 98 * |----------------------------------------------------------|--------|-------------------------------------------|------| 99 * | Input Under Voltage Event Statistics | 0x0027 | Event Statistics | 6 | 100 * |----------------------------------------------------------|--------|-------------------------------------------|------| 101 * | Input Voltage Range Specification | 0x0028 | Voltage Specification | 6 | 102 * |----------------------------------------------------------|--------|-------------------------------------------|------| 103 * | Input Voltage Ripple Specification | 0x0029 | Percentage 8 | 1 | 104 * |----------------------------------------------------------|--------|-------------------------------------------|------| 105 * | Input Voltage Statistics | 0x002A | Voltage Statistics | 9 | 106 * |----------------------------------------------------------|--------|-------------------------------------------|------| 107 * | Light Control Ambient LuxLevel On | 0x002B | Illuminance | 3 | 108 * |----------------------------------------------------------|--------|-------------------------------------------|------| 109 * | Light Control Ambient LuxLevel Prolong | 0x002C | Illuminance | 3 | 110 * |----------------------------------------------------------|--------|-------------------------------------------|------| 111 * | Light Control Ambient LuxLevel Standby | 0x002D | Illuminance | 3 | 112 * |----------------------------------------------------------|--------|-------------------------------------------|------| 113 * | Light Control Lightness On | 0x002E | Perceived Lightness | 2 | 114 * |----------------------------------------------------------|--------|-------------------------------------------|------| 115 * | Light Control Lightness Prolong | 0x002F | Perceived Lightness | 2 | 116 * |----------------------------------------------------------|--------|-------------------------------------------|------| 117 * | Light Control Lightness Standby | 0x0030 | Perceived Lightness | 2 | 118 * |----------------------------------------------------------|--------|-------------------------------------------|------| 119 * | Light Control Regulator Accuracy | 0x0031 | Percentage 8 | 1 | 120 * |----------------------------------------------------------|--------|-------------------------------------------|------| 121 * | Light Control Regulator Kid | 0x0032 | Coefficient | 4 | 122 * |----------------------------------------------------------|--------|-------------------------------------------|------| 123 * | Light Control Regulator Kiu | 0x0033 | Coefficient | 4 | 124 * |----------------------------------------------------------|--------|-------------------------------------------|------| 125 * | Light Control Regulator Kpd | 0x0034 | Coefficient | 4 | 126 * |----------------------------------------------------------|--------|-------------------------------------------|------| 127 * | Light Control Regulator Kpu | 0x0035 | Coefficient | 4 | 128 * |----------------------------------------------------------|--------|-------------------------------------------|------| 129 * | Light Control Time Fade | 0x0036 | Time Millisecond 24 | 3 | 130 * |----------------------------------------------------------|--------|-------------------------------------------|------| 131 * | Light Control Time Fade On | 0x0037 | Time Millisecond 24 | 3 | 132 * |----------------------------------------------------------|--------|-------------------------------------------|------| 133 * | Light Control Time Fade Standby Auto | 0x0038 | Time Millisecond 24 | 3 | 134 * |----------------------------------------------------------|--------|-------------------------------------------|------| 135 * | Light Control Time Fade Standby Manual | 0x0039 | Time Millisecond 24 | 3 | 136 * |----------------------------------------------------------|--------|-------------------------------------------|------| 137 * | Light Control Time Occupancy Delay | 0x003A | Time Millisecond 24 | 3 | 138 * |----------------------------------------------------------|--------|-------------------------------------------|------| 139 * | Light Control Time Prolong | 0x003B | Time Millisecond 24 | 3 | 140 * |----------------------------------------------------------|--------|-------------------------------------------|------| 141 * | Light Control Time Run On | 0x003C | Time Millisecond 24 | 3 | 142 * |----------------------------------------------------------|--------|-------------------------------------------|------| 143 * | Lumen Maintenance Factor | 0x003D | Percentage 8 | 1 | 144 * |----------------------------------------------------------|--------|-------------------------------------------|------| 145 * | Luminous Efficacy | 0x003E | Luminous Efficacy | 2 | 146 * |----------------------------------------------------------|--------|-------------------------------------------|------| 147 * | Luminous Energy Since Turn On | 0x003F | Luminous Energy | 3 | 148 * |----------------------------------------------------------|--------|-------------------------------------------|------| 149 * | Luminous Exposure | 0x0040 | Luminous Exposure | 3 | 150 * |----------------------------------------------------------|--------|-------------------------------------------|------| 151 * | Luminous Flux Range | 0x0041 | Luminous Flux Range | 4 | 152 * |----------------------------------------------------------|--------|-------------------------------------------|------| 153 * | Motion Sensed | 0x0042 | Percentage 8 | 1 | 154 * |----------------------------------------------------------|--------|-------------------------------------------|------| 155 * | Motion Threshold | 0x0043 | Percentage 8 | 1 | 156 * |----------------------------------------------------------|--------|-------------------------------------------|------| 157 * | Open Circuit Event Statistics | 0x0044 | Event Statistics | 6 | 158 * |----------------------------------------------------------|--------|-------------------------------------------|------| 159 * | Outdoor Statistical Values | 0x0045 | Temperature 8 Statistics | 5 | 160 * |----------------------------------------------------------|--------|-------------------------------------------|------| 161 * | Output Current Range | 0x0046 | Electric Current Range | 4 | 162 * |----------------------------------------------------------|--------|-------------------------------------------|------| 163 * | Output Current Statistics | 0x0047 | Electric Current Statistics | 9 | 164 * |----------------------------------------------------------|--------|-------------------------------------------|------| 165 * | Output Ripple Voltage Specification | 0x0048 | Percentage 8 | 1 | 166 * |----------------------------------------------------------|--------|-------------------------------------------|------| 167 * | Output Voltage Range | 0x0049 | Voltage Specification | 6 | 168 * |----------------------------------------------------------|--------|-------------------------------------------|------| 169 * | Output Voltage Statistics | 0x004A | Voltage Statistics | 9 | 170 * |----------------------------------------------------------|--------|-------------------------------------------|------| 171 * | Over Output Ripple Voltage Event Statistics | 0x004B | Event Statistics | 6 | 172 * |----------------------------------------------------------|--------|-------------------------------------------|------| 173 * | People Count | 0x004C | Count 16 | 2 | 174 * |----------------------------------------------------------|--------|-------------------------------------------|------| 175 * | Presence Detected | 0x004D | Boolean | 1 | 176 * |----------------------------------------------------------|--------|-------------------------------------------|------| 177 * | Present Ambient Light Level | 0x004E | Illuminance | 3 | 178 * |----------------------------------------------------------|--------|-------------------------------------------|------| 179 * | Present Ambient Temperature | 0x004F | Temperature 8 | 1 | 180 * |----------------------------------------------------------|--------|-------------------------------------------|------| 181 * | Present CIE 1931 Chromaticity Coordinates | 0x0050 | Chromaticity Coordinates | 4 | 182 * |----------------------------------------------------------|--------|-------------------------------------------|------| 183 * | Present Correlated Color Temperature | 0x0051 | Correlated Color Temperature | 2 | 184 * |----------------------------------------------------------|--------|-------------------------------------------|------| 185 * | Present Device Input Power | 0x0052 | Power | 3 | 186 * |----------------------------------------------------------|--------|-------------------------------------------|------| 187 * | Present Device Operating Efficiency | 0x0053 | Percentage 8 | 1 | 188 * |----------------------------------------------------------|--------|-------------------------------------------|------| 189 * | Present Device Operating Temperature | 0x0054 | Temperature | 2 | 190 * |----------------------------------------------------------|--------|-------------------------------------------|------| 191 * | Present Illuminance | 0x0055 | Illuminance | 3 | 192 * |----------------------------------------------------------|--------|-------------------------------------------|------| 193 * | Present Indoor Ambient Temperature | 0x0056 | Temperature 8 | 1 | 194 * |----------------------------------------------------------|--------|-------------------------------------------|------| 195 * | Present Input Current | 0x0057 | Electric Current | 2 | 196 * |----------------------------------------------------------|--------|-------------------------------------------|------| 197 * | Present Input Ripple Voltage | 0x0058 | Percentage 8 | 1 | 198 * |----------------------------------------------------------|--------|-------------------------------------------|------| 199 * | Present Input Voltage | 0x0059 | Voltage | 2 | 200 * |----------------------------------------------------------|--------|-------------------------------------------|------| 201 * | Present Luminous Flux | 0x005A | Luminous Flux | 2 | 202 * |----------------------------------------------------------|--------|-------------------------------------------|------| 203 * | Present Outdoor Ambient Temperature | 0x005B | Temperature 8 | 1 | 204 * |----------------------------------------------------------|--------|-------------------------------------------|------| 205 * | Present Output Current | 0x005C | Electric Current | 2 | 206 * |----------------------------------------------------------|--------|-------------------------------------------|------| 207 * | Present Output Voltage | 0x005D | Voltage | 2 | 208 * |----------------------------------------------------------|--------|-------------------------------------------|------| 209 * | Present Planckian Distance | 0x005E | Chromatic Distance From Planckian | 2 | 210 * |----------------------------------------------------------|--------|-------------------------------------------|------| 211 * | Present Relative Output Ripple Voltage | 0x005F | Percentage 8 | 1 | 212 * |----------------------------------------------------------|--------|-------------------------------------------|------| 213 * | Relative Device Energy Use In A Period Of Day | 0x0060 | Energy In A Period Of Day | 5 | 214 * |----------------------------------------------------------|--------|-------------------------------------------|------| 215 * | Relative Device Runtime In A Generic Level Range | 0x0061 | Relative Runtime In A Generic Level Range | 5 | 216 * |----------------------------------------------------------|--------|-------------------------------------------|------| 217 * | Relative Exposure Time In An Illuminance Range | 0x0062 | Relative Value In An Illuminance Range | 5 | 218 * |----------------------------------------------------------|--------|-------------------------------------------|------| 219 * | Relative Runtime In A Correlated Color Temperature Range | 0x0063 | Luminous Energy | 3 | 220 * |----------------------------------------------------------|--------|-------------------------------------------|------| 221 * | Relative Runtime In A Device Operating Temperature Range | 0x0064 | Relative Value In A Temperature Range | 3 | 222 * |----------------------------------------------------------|--------|-------------------------------------------|------| 223 * | Relative Runtime In An Input Current Range | 0x0065 | Relative Runtime In A Current Range | 5 | 224 * |----------------------------------------------------------|--------|-------------------------------------------|------| 225 * | Relative Runtime In An Input Voltage Range | 0x0066 | Relative Value In A Voltage Range | 5 | 226 * |----------------------------------------------------------|--------|-------------------------------------------|------| 227 * | Short Circuit Event Statistics | 0x0067 | Event Statistics | 6 | 228 * |----------------------------------------------------------|--------|-------------------------------------------|------| 229 * | Time Since Motion Sensed | 0x0068 | Time Second 16 | 2 | 230 * |----------------------------------------------------------|--------|-------------------------------------------|------| 231 * | Time Since Presence Detected | 0x0069 | Time Second 16 | 2 | 232 * |----------------------------------------------------------|--------|-------------------------------------------|------| 233 * | Total Device Energy Use | 0x006A | Energy | 3 | 234 * |----------------------------------------------------------|--------|-------------------------------------------|------| 235 * | Total Device Off On Cycles | 0x006B | Count 24 | 3 | 236 * |----------------------------------------------------------|--------|-------------------------------------------|------| 237 * | Total Device Power On Cycles | 0x006C | Count 24 | 3 | 238 * |----------------------------------------------------------|--------|-------------------------------------------|------| 239 * | Total Device Power On Time | 0x006D | Time Hour 24 | 3 | 240 * |----------------------------------------------------------|--------|-------------------------------------------|------| 241 * | Total Device Runtime | 0x006E | Time Hour 24 | 3 | 242 * |----------------------------------------------------------|--------|-------------------------------------------|------| 243 * | Total Light Exposure Time | 0x006F | Time Hour 24 | 3 | 244 * |----------------------------------------------------------|--------|-------------------------------------------|------| 245 * | Total Luminous Energy | 0x0070 | Luminous Energy | 3 | 246 * |----------------------------------------------------------|--------|-------------------------------------------|------| 247 * | Desired Ambient Temperature | 0x0071 | Temperature 8 | 1 | 248 * |----------------------------------------------------------|--------|-------------------------------------------|------| 249 * | Precise Total Device Energy Use | 0x0072 | Energy32 | 4 | 250 * |----------------------------------------------------------|--------|-------------------------------------------|------| 251 * | Power Factor | 0x0073 | Cosine Of The Angle | 1 | 252 * |----------------------------------------------------------|--------|-------------------------------------------|------| 253 * | Sensor Gain | 0x0074 | Coefficient | 4 | 254 * |----------------------------------------------------------|--------|-------------------------------------------|------| 255 * | Precise Present Ambient Temperature | 0x0075 | Temperature | 2 | 256 * |----------------------------------------------------------|--------|-------------------------------------------|------| 257 * | Present Ambient Relative Humidity | 0x0076 | Humidity | 2 | 258 * |----------------------------------------------------------|--------|-------------------------------------------|------| 259 * | Present Ambient Carbon Dioxide Concentration | 0x0077 | CO2 Concentration | 2 | 260 * |----------------------------------------------------------|--------|-------------------------------------------|------| 261 * | Present Ambient Volatile Organic Compounds Concentration | 0x0078 | VOC Concentration | 2 | 262 * |----------------------------------------------------------|--------|-------------------------------------------|------| 263 * | Present Ambient Noise | 0x0079 | Noise | 1 | 264 * |----------------------------------------------------------|--------|-------------------------------------------|------| 265 * | Active Energy Loadside | 0x0080 | Energy32 | 4 | 266 * |----------------------------------------------------------|--------|-------------------------------------------|------| 267 * | Active Power Loadside | 0x0081 | Power | 3 | 268 * |----------------------------------------------------------|--------|-------------------------------------------|------| 269 * | Air Pressure | 0x0082 | Pressure | 4 | 270 * |----------------------------------------------------------|--------|-------------------------------------------|------| 271 * | Apparent Energy | 0x0083 | Apparent Energy32 | 4 | 272 * |----------------------------------------------------------|--------|-------------------------------------------|------| 273 * | Apparent Power | 0x0084 | Apparent Power | 3 | 274 * |----------------------------------------------------------|--------|-------------------------------------------|------| 275 * | Apparent Wind Direction | 0x0085 | Apparent Wind Direction | 2 | 276 * |----------------------------------------------------------|--------|-------------------------------------------|------| 277 * | Apparent Wind Speed | 0x0086 | Apparent Wind Speed | 2 | 278 * |----------------------------------------------------------|--------|-------------------------------------------|------| 279 * | Dew Point | 0x0087 | Dew Point | 1 | 280 * |----------------------------------------------------------|--------|-------------------------------------------|------| 281 * | External Supply Voltage | 0x0088 | High Voltage | 3 | 282 * |----------------------------------------------------------|--------|-------------------------------------------|------| 283 * | External Supply Voltage Frequency | 0x0089 | Voltage Frequency | 2 | 284 * |----------------------------------------------------------|--------|-------------------------------------------|------| 285 * | Gust Factor | 0x008A | Gust Factor | 1 | 286 * |----------------------------------------------------------|--------|-------------------------------------------|------| 287 * | Heat Index | 0x008B | Heat Index | 1 | 288 * |----------------------------------------------------------|--------|-------------------------------------------|------| 289 * | Light Distribution | 0x008C | Light Distribution | 1 | 290 * |----------------------------------------------------------|--------|-------------------------------------------|------| 291 * | Light Source Current | 0x008D | Average Current | 3 | 292 * |----------------------------------------------------------|--------|-------------------------------------------|------| 293 * | Light Source On Time Not Resettable | 0x008E | Time Second 32 | 4 | 294 * |----------------------------------------------------------|--------|-------------------------------------------|------| 295 * | Light Source On Time Resettable | 0x008F | Time Second 32 | 4 | 296 * |----------------------------------------------------------|--------|-------------------------------------------|------| 297 * | Light Source Open Circuit Statistics | 0x0090 | Event Statistics | 6 | 298 * |----------------------------------------------------------|--------|-------------------------------------------|------| 299 * | Light Source Overall Failures Statistics | 0x0091 | Event Statistics | 6 | 300 * |----------------------------------------------------------|--------|-------------------------------------------|------| 301 * | Light Source Short Circuit Statistics | 0x0092 | Event Statistics | 6 | 302 * |----------------------------------------------------------|--------|-------------------------------------------|------| 303 * | Light Source Start Counter Resettable | 0x0093 | Count 24 | 3 | 304 * |----------------------------------------------------------|--------|-------------------------------------------|------| 305 * | Light Source Temperature | 0x0094 | High Temperature | 2 | 306 * |----------------------------------------------------------|--------|-------------------------------------------|------| 307 * | Light Source Thermal Derating Statistics | 0x0095 | Event Statistics | 6 | 308 * |----------------------------------------------------------|--------|-------------------------------------------|------| 309 * | Light Source Thermal Shutdown Statistics | 0x0096 | Event Statistics | 6 | 310 * |----------------------------------------------------------|--------|-------------------------------------------|------| 311 * | Light Source Total Power On Cycles | 0x0097 | Count 24 | 3 | 312 * |----------------------------------------------------------|--------|-------------------------------------------|------| 313 * | Light Source Voltage | 0x0098 | Average Voltage | 3 | 314 * |----------------------------------------------------------|--------|-------------------------------------------|------| 315 * | Luminaire Color | 0x0099 | Fixed String 24 | 24 | 316 * |----------------------------------------------------------|--------|-------------------------------------------|------| 317 * | Luminaire Identification Number | 0x009A | Fixed String 24 | 24 | 318 * |----------------------------------------------------------|--------|-------------------------------------------|------| 319 * | Luminaire Manufacturer GTIN | 0x009B | Global Trade Item Number | 6 | 320 * |----------------------------------------------------------|--------|-------------------------------------------|------| 321 * | Luminaire Nominal Input Power | 0x009C | Power | 3 | 322 * |----------------------------------------------------------|--------|-------------------------------------------|------| 323 * | Luminaire Nominal Maximum AC Mains Voltage | 0x009D | Voltage | 2 | 324 * |----------------------------------------------------------|--------|-------------------------------------------|------| 325 * | Luminaire Nominal Minimum AC Mains Voltage | 0x009E | Voltage | 2 | 326 * |----------------------------------------------------------|--------|-------------------------------------------|------| 327 * | Luminaire Power At Minimum Dim Level | 0x009F | Power | 3 | 328 * |----------------------------------------------------------|--------|-------------------------------------------|------| 329 * | Luminaire Time Of Manufacture | 0x00A0 | Date UTC | 3 | 330 * |----------------------------------------------------------|--------|-------------------------------------------|------| 331 * | Magnetic Declination | 0x00A1 | Magnetic Declination | 2 | 332 * |----------------------------------------------------------|--------|-------------------------------------------|------| 333 * | Magnetic Flux Density - 2D | 0x00A2 | Magnetic Flux Density - 2D | 4 | 334 * |----------------------------------------------------------|--------|-------------------------------------------|------| 335 * | Magnetic Flux Density - 3D | 0x00A3 | Magnetic Flux Density - 3D | 6 | 336 * |----------------------------------------------------------|--------|-------------------------------------------|------| 337 * | Nominal Light Output | 0x00A4 | Light Output | 3 | 338 * |----------------------------------------------------------|--------|-------------------------------------------|------| 339 * | Overall Failure Condition | 0x00A5 | Event Statistics | 6 | 340 * |----------------------------------------------------------|--------|-------------------------------------------|------| 341 * | Pollen Concentration | 0x00A6 | Pollen Concentration | 3 | 342 * |----------------------------------------------------------|--------|-------------------------------------------|------| 343 * | Present Indoor Relative Humidity | 0x00A7 | Humidity | 2 | 344 * |----------------------------------------------------------|--------|-------------------------------------------|------| 345 * | Present Outdoor Relative Humidity | 0x00A8 | Humidity | 2 | 346 * |----------------------------------------------------------|--------|-------------------------------------------|------| 347 * | Pressure | 0x00A9 | Pressure | 4 | 348 * |----------------------------------------------------------|--------|-------------------------------------------|------| 349 * | Rainfall | 0x00AA | Rainfall | 2 | 350 * |----------------------------------------------------------|--------|-------------------------------------------|------| 351 * | Rated Median Useful Life Of Luminaire | 0x00AB | Time Hour 24 | 3 | 352 * |----------------------------------------------------------|--------|-------------------------------------------|------| 353 * | Rated Median Useful Light Source Starts | 0x00AC | Count 24 | 3 | 354 * |----------------------------------------------------------|--------|-------------------------------------------|------| 355 * | Reference Temperature | 0x00AD | High Temperature | 2 | 356 * |----------------------------------------------------------|--------|-------------------------------------------|------| 357 * | Total Device Starts | 0x00AE | Count 24 | 3 | 358 * |----------------------------------------------------------|--------|-------------------------------------------|------| 359 * | True Wind Direction | 0x00AF | True Wind Direction | 2 | 360 * |----------------------------------------------------------|--------|-------------------------------------------|------| 361 * | True Wind Speed | 0x00B0 | True Wind Speed | 2 | 362 * |----------------------------------------------------------|--------|-------------------------------------------|------| 363 * | UV Index | 0x00B1 | UV Index | 1 | 364 * |----------------------------------------------------------|--------|-------------------------------------------|------| 365 * | Wind Chill | 0x00B2 | Wind Chill | 1 | 366 * |----------------------------------------------------------|--------|-------------------------------------------|------| 367 * | Light Source Type | 0x00B3 | Light Source Type | 1 | 368 * |----------------------------------------------------------|--------|-------------------------------------------|------| 369 * | Luminaire Identification String | 0x00B4 | Fixed String 64 | 64 | 370 * |----------------------------------------------------------|--------|-------------------------------------------|------| 371 * | Output Power Limitation | 0x00B5 | Event Statistics | 6 | 372 * |----------------------------------------------------------|--------|-------------------------------------------|------| 373 * | Thermal Derating | 0x00B6 | Event Statistics | 6 | 374 * |----------------------------------------------------------|--------|-------------------------------------------|------| 375 * | Output Current Percent | 0x00B7 | Percentage 8 | 1 | 376 * |----------------------------------------------------------|--------|-------------------------------------------|------| 377 */ 378 379 /** 380 * @brief BLE Mesh Device Property IDs 381 */ 382 #define BLE_MESH_INVALID_DEVICE_PROPERTY_ID 0x0000 383 #define BLE_MESH_AVERAGE_AMBIENT_TEMPERATURE_IN_A_PERIOD_OF_DAY 0x0001 384 #define BLE_MESH_AVERAGE_INPUT_CURRENT 0x0002 385 #define BLE_MESH_AVERAGE_INPUT_VOLTAGE 0x0003 386 #define BLE_MESH_AVERAGE_OUTPUT_CURRENT 0x0004 387 #define BLE_MESH_AVERAGE_OUTPUT_VOLTAGE 0x0005 388 #define BLE_MESH_CENTER_BEAM_INTENSITY_AT_FULL_POWER 0x0006 389 #define BLE_MESH_CHROMATICITY_TOLERANCE 0x0007 390 #define BLE_MESH_COLOR_RENDERING_INDEX_R9 0x0008 391 #define BLE_MESH_COLOR_RENDERING_INDEX_RA 0x0009 392 #define BLE_MESH_DEVICE_APPEARANCE 0x000A 393 #define BLE_MESH_DEVICE_COUNTRY_OF_ORIGIN 0x000B 394 #define BLE_MESH_DEVICE_DATE_OF_MANUFACTURE 0x000C 395 #define BLE_MESH_DEVICE_ENERGY_USE_SINCE_TURN_ON 0x000D 396 #define BLE_MESH_DEVICE_FIRMWARE_REVISION 0x000E 397 #define BLE_MESH_DEVICE_GLOBAL_TRADE_ITEM_NUMBER 0x000F 398 #define BLE_MESH_DEVICE_HARDWARE_REVISION 0x0010 399 #define BLE_MESH_DEVICE_MANUFACTURER_NAME 0x0011 400 #define BLE_MESH_DEVICE_MODEL_NUMBER 0x0012 401 #define BLE_MESH_DEVICE_OPERATING_TEMPERATURE_RANGE_SPECIFICATION 0x0013 402 #define BLE_MESH_DEVICE_OPERATING_TEMPERATURE_STATISTICAL_VALUES 0x0014 403 #define BLE_MESH_DEVICE_OVER_TEMPERATURE_EVENT_STATISTICS 0x0015 404 #define BLE_MESH_DEVICE_POWER_RANGE_SPECIFICATION 0x0016 405 #define BLE_MESH_DEVICE_RUNTIME_SINCE_TURN_ON 0x0017 406 #define BLE_MESH_DEVICE_RUNTIME_WARRANTY 0x0018 407 #define BLE_MESH_DEVICE_SERIAL_NUMBER 0x0019 408 #define BLE_MESH_DEVICE_SOFTWARE_REVISION 0x001A 409 #define BLE_MESH_DEVICE_UNDER_TEMPERATURE_EVENT_STATISTICS 0x001B 410 #define BLE_MESH_INDOOR_AMBIENT_TEMPERATURE_STATISTICAL_VALUES 0x001C 411 #define BLE_MESH_INITIAL_CIE_1931_CHROMATICITY_COORDINATES 0x001D 412 #define BLE_MESH_INITIAL_CORRELATED_COLOR_TEMPERATURE 0x001E 413 #define BLE_MESH_INITIAL_LUMINOUS_FLUX 0x001F 414 #define BLE_MESH_INITIAL_PLANCKIAN_DISTANCE 0x0020 415 #define BLE_MESH_INPUT_CURRENT_RANGE_SPECIFICATION 0x0021 416 #define BLE_MESH_INPUT_CURRENT_STATISTICS 0x0022 417 #define BLE_MESH_INPUT_OVER_CURRENT_EVENT_STATISTICS 0x0023 418 #define BLE_MESH_INPUT_OVER_RIPPLE_VOLTAGE_EVENT_STATISTICS 0x0024 419 #define BLE_MESH_INPUT_OVER_VOLTAGE_EVENT_STATISTICS 0x0025 420 #define BLE_MESH_INPUT_UNDER_CURRENT_EVENT_STATISTICS 0x0026 421 #define BLE_MESH_INPUT_UNDER_VOLTAGE_EVENT_STATISTICS 0x0027 422 #define BLE_MESH_INPUT_VOLTAGE_RANGE_SPECIFICATION 0x0028 423 #define BLE_MESH_INPUT_VOLTAGE_RIPPLE_SPECIFICATION 0x0029 424 #define BLE_MESH_INPUT_VOLTAGE_STATISTICS 0x002A 425 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_ON 0x002B 426 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_PROLONG 0x002C 427 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_STANDBY 0x002D 428 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_ON 0x002E 429 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_PROLONG 0x002F 430 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_STANDBY 0x0030 431 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_ACCURACY 0x0031 432 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KID 0x0032 433 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KIU 0x0033 434 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KPD 0x0034 435 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KPU 0x0035 436 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE 0x0036 437 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_ON 0x0037 438 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_STANDBY_AUTO 0x0038 439 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_STANDBY_MANUAL 0x0039 440 #define BLE_MESH_LIGHT_CONTROL_TIME_OCCUPANCY_DELAY 0x003A 441 #define BLE_MESH_LIGHT_CONTROL_TIME_PROLONG 0x003B 442 #define BLE_MESH_LIGHT_CONTROL_TIME_RUN_ON 0x003C 443 #define BLE_MESH_LUMEN_MAINTENANCE_FACTOR 0x003D 444 #define BLE_MESH_LUMINOUS_EFFICACY 0x003E 445 #define BLE_MESH_LUMINOUS_ENERGY_SINCE_TURN_ON 0x003F 446 #define BLE_MESH_LUMINOUS_EXPOSURE 0x0040 447 #define BLE_MESH_LUMINOUS_FLUX_RANGE 0x0041 448 #define BLE_MESH_MOTION_SENSED 0x0042 449 #define BLE_MESH_MOTION_THRESHOLD 0x0043 450 #define BLE_MESH_OPEN_CIRCUIT_EVENT_STATISTICS 0x0044 451 #define BLE_MESH_OUTDOOR_STATISTICAL_VALUES 0x0045 452 #define BLE_MESH_OUTPUT_CURRENT_RANGE 0x0046 453 #define BLE_MESH_OUTPUT_CURRENT_STATISTICS 0x0047 454 #define BLE_MESH_OUTPUT_RIPPLE_VOLTAGE_SPECIFICATION 0x0048 455 #define BLE_MESH_OUTPUT_VOLTAGE_RANGE 0x0049 456 #define BLE_MESH_OUTPUT_VOLTAGE_STATISTICS 0x004A 457 #define BLE_MESH_OVER_OUTPUT_RIPPLE_VOLTAGE_EVENT_STATISTICS 0x004B 458 #define BLE_MESH_PEOPLE_COUNT 0x004C 459 #define BLE_MESH_PRESENCE_DETECTED 0x004D 460 #define BLE_MESH_PRESENT_AMBIENT_LIGHT_LEVEL 0x004E 461 #define BLE_MESH_PRESENT_AMBIENT_TEMPERATURE 0x004F 462 #define BLE_MESH_PRESENT_CIE_1931_CHROMATICITY 0x0050 463 #define BLE_MESH_PRESENT_CORRELATED_COLOR_TEMPERATURE 0x0051 464 #define BLE_MESH_PRESENT_DEVICE_INPUT_POWER 0x0052 465 #define BLE_MESH_PRESENT_DEVICE_OPERATING_EFFICIENCY 0x0053 466 #define BLE_MESH_PRESENT_DEVICE_OPERATING_TEMPERATURE 0x0054 467 #define BLE_MESH_PRESENT_ILLUMINANCE 0x0055 468 #define BLE_MESH_PRESENT_INDOOR_AMBIENT_TEMPERATURE 0x0056 469 #define BLE_MESH_PRESENT_INPUT_CURRENT 0x0057 470 #define BLE_MESH_PRESENT_INPUT_RIPPLE_VOLTAGE 0x0058 471 #define BLE_MESH_PRESENT_INPUT_VOLTAGE 0x0059 472 #define BLE_MESH_PRESENT_LUMINOUS_FLUX 0x005A 473 #define BLE_MESH_PRESENT_OUTDOOR_AMBIENT_TEMPERATURE 0x005B 474 #define BLE_MESH_PRESENT_OUTPUT_CURRENT 0x005C 475 #define BLE_MESH_PRESENT_OUTPUT_VOLTAGE 0x005D 476 #define BLE_MESH_PRESENT_PLANCKIAN_DISTANCE 0x005E 477 #define BLE_MESH_PRESENT_RELATIVE_OUTPUT_RIPPLE_VOLTAGE 0x005F 478 #define BLE_MESH_RELATIVE_DEVICE_ENERGY_USE_IN_A_PERIOD_OF_DAY 0x0060 479 #define BLE_MESH_RELATIVE_DEVICE_RUNTIME_IN_A_GENERIC_LEVEL_RANGE 0x0061 480 #define BLE_MESH_RELATIVE_EXPOSURE_TIME_IN_AN_ILLUMINANCE_RANGE 0x0062 481 #define BLE_MESH_RELATIVE_RUNTIME_IN_A_CORRELATED_COLOR_TEMPERATURE_RANGE 0x0063 482 #define BLE_MESH_RELATIVE_RUNTIME_IN_A_DEVICE_OPERATING_TEMPERATURE_RANGE 0x0064 483 #define BLE_MESH_RELATIVE_RUNTIME_IN_AN_INPUT_CURRENT_RANGE 0x0065 484 #define BLE_MESH_RELATIVE_RUNTIME_IN_AN_INPUT_VOLTAGE_RANGE 0x0066 485 #define BLE_MESH_SHORT_CIRCUIT_EVENT_STATISTICS 0x0067 486 #define BLE_MESH_TIME_SINCE_MOTION_SENSED 0x0068 487 #define BLE_MESH_TIME_SINCE_PRESENCE_DETECTED 0x0069 488 #define BLE_MESH_TOTAL_DEVICE_ENERGY_USE 0x006A 489 #define BLE_MESH_TOTAL_DEVICE_OFF_ON_CYCLES 0x006B 490 #define BLE_MESH_TOTAL_DEVICE_POWER_ON_CYCLES 0x006C 491 #define BLE_MESH_TOTAL_DEVICE_POWER_ON_TIME 0x006D 492 #define BLE_MESH_TOTAL_DEVICE_RUNTIME 0x006E 493 #define BLE_MESH_TOTAL_LIGHT_EXPOSURE_TIME 0x006F 494 #define BLE_MESH_TOTAL_LUMINOUS_ENERGY 0x0070 495 #define BLE_MESH_DESIRED_AMBIENT_TEMPERATURE 0x0071 496 #define BLE_MESH_PRECISE_TOTAL_DEVICE_ENERGY_USE 0x0072 497 #define BLE_MESH_POWER_FACTOR 0x0073 498 #define BLE_MESH_SENSOR_GAIN 0x0074 499 #define BLE_MESH_PRECISE_PRESENT_AMBIENT_TEMPERATURE 0x0075 500 #define BLE_MESH_PRESENT_AMBIENT_RELATIVE_HUMIDITY 0x0076 501 #define BLE_MESH_PRESENT_AMBIENT_CARBON_DIOXIDE_CONCENTRATION 0x0077 502 #define BLE_MESH_PRESENT_AMBIENT_VOLATILE_ORGANIC_COMPOUNDS_CONCENTRATION 0x0078 503 #define BLE_MESH_PRESENT_AMBIENT_NOISE 0x0079 504 #define BLE_MESH_ACTIVE_ENERGY_LOADSIDE 0x0080 505 #define BLE_MESH_ACTIVE_POWER_LOADSIDE 0x0081 506 #define BLE_MESH_AIR_PRESSURE 0x0082 507 #define BLE_MESH_APPARENT_ENERGY 0x0083 508 #define BLE_MESH_APPARENT_POWER 0x0084 509 #define BLE_MESH_APPARENT_WIND_DIRECTION 0x0085 510 #define BLE_MESH_APPARENT_WIND_SPEED 0x0086 511 #define BLE_MESH_DEW_POINT 0x0087 512 #define BLE_MESH_EXTERNAL_SUPPLY_VOLTAGE 0x0088 513 #define BLE_MESH_EXTERNAL_SUPPLY_VOLTAGE_FREQUENCY 0x0089 514 #define BLE_MESH_GUST_FACTOR 0x008A 515 #define BLE_MESH_HEAT_INDEX 0x008B 516 #define BLE_MESH_LIGHT_DISTRIBUTION 0x008C 517 #define BLE_MESH_LIGHT_SOURCE_CURRENT 0x008D 518 #define BLE_MESH_LIGHT_SOURCE_ON_TIME_NOT_RESETTABLE 0x008E 519 #define BLE_MESH_LIGHT_SOURCE_ON_TIME_RESETTABLE 0x008F 520 #define BLE_MESH_LIGHT_SOURCE_OPEN_CIRCUIT_STATISTICS 0x0090 521 #define BLE_MESH_LIGHT_SOURCE_OVERALL_FAILURES_STATISTICS 0x0091 522 #define BLE_MESH_LIGHT_SOURCE_SHORT_CIRCUIT_STATISTICS 0x0092 523 #define BLE_MESH_LIGHT_SOURCE_START_COUNTER_RESETTABLE 0x0093 524 #define BLE_MESH_LIGHT_SOURCE_TEMPERATURE 0x0094 525 #define BLE_MESH_LIGHT_SOURCE_THERMAL_DERATING_STATISTICS 0x0095 526 #define BLE_MESH_LIGHT_SOURCE_THERMAL_SHUTDOWN_STATISTICS 0x0096 527 #define BLE_MESH_LIGHT_SOURCE_TOTAL_POWER_ON_CYCLES 0x0097 528 #define BLE_MESH_LIGHT_SOURCE_VOLTAGE 0x0098 529 #define BLE_MESH_LUMINAIRE_COLOR 0x0099 530 #define BLE_MESH_LUMINAIRE_IDENTIFICATION_NUMBER 0x009A 531 #define BLE_MESH_LUMINAIRE_MANUFACTURER_GTIN 0x009B 532 #define BLE_MESH_LUMINAIRE_NOMINAL_INPUT_POWER 0x009C 533 #define BLE_MESH_LUMINAIRE_NOMINAL_MAXIMUM_AC_MAINS_VOLTAGE 0x009D 534 #define BLE_MESH_LUMINAIRE_NOMINAL_MINIMUM_AC_MAINS_VOLTAGE 0x009E 535 #define BLE_MESH_LUMINAIRE_POWER_AT_MINIMUM_DIM_LEVEL 0x009F 536 #define BLE_MESH_LUMINAIRE_TIME_OF_MANUFACTURE 0x00A0 537 #define BLE_MESH_MAGNETIC_DECLINATION 0x00A1 538 #define BLE_MESH_MAGNETIC_FLUX_DENSITY_2D 0x00A2 539 #define BLE_MESH_MAGNETIC_FLUX_DENSITY_3D 0x00A3 540 #define BLE_MESH_NOMINAL_LIGHT_OUTPUT 0x00A4 541 #define BLE_MESH_OVERALL_FAILURE_CONDITION 0x00A5 542 #define BLE_MESH_POLLEN_CONCENTRATION 0x00A6 543 #define BLE_MESH_PRESENT_INDOOR_RELATIVE_HUMIDITY 0x00A7 544 #define BLE_MESH_PRESENT_OUTDOOR_RELATIVE_HUMIDITY 0x00A8 545 #define BLE_MESH_PRESSURE 0x00A9 546 #define BLE_MESH_RAINFALL 0x00AA 547 #define BLE_MESH_RATED_MEDIAN_USEFUL_LIFE_OF_LUMINAIRE 0x00AB 548 #define BLE_MESH_RATED_MEDIAN_USEFUL_LIGHT_SOURCE_STARTS 0x00AC 549 #define BLE_MESH_REFERENCE_TEMPERATURE 0x00AD 550 #define BLE_MESH_TOTAL_DEVICE_STARTS 0x00AE 551 #define BLE_MESH_TRUE_WIND_DIRECTION 0x00AF 552 #define BLE_MESH_TRUE_WIND_SPEED 0x00B0 553 #define BLE_MESH_UV_INDEX 0x00B1 554 #define BLE_MESH_WIND_CHILL 0x00B2 555 #define BLE_MESH_LIGHT_SOURCE_TYPE 0x00B3 556 #define BLE_MESH_LUMINAIRE_IDENTIFICATION_STRING 0x00B4 557 #define BLE_MESH_OUTPUT_POWER_LIMITATION 0x00B5 558 #define BLE_MESH_THERMAL_DERATING 0x00B6 559 #define BLE_MESH_OUTPUT_CURRENT_PERCENT 0x00B7 560 561 /** 562 * @brief BLE Mesh Device Property value length 563 */ 564 #define BLE_MESH_AVERAGE_AMBIENT_TEMPERATURE_IN_A_PERIOD_OF_DAY_LEN 3 565 #define BLE_MESH_AVERAGE_INPUT_CURRENT_LEN 3 566 #define BLE_MESH_AVERAGE_INPUT_VOLTAGE_LEN 3 567 #define BLE_MESH_AVERAGE_OUTPUT_CURRENT_LEN 3 568 #define BLE_MESH_AVERAGE_OUTPUT_VOLTAGE_LEN 3 569 #define BLE_MESH_CENTER_BEAM_INTENSITY_AT_FULL_POWER_LEN 2 570 #define BLE_MESH_CHROMATICITY_TOLERANCE_LEN 1 571 #define BLE_MESH_COLOR_RENDERING_INDEX_R9_LEN 1 572 #define BLE_MESH_COLOR_RENDERING_INDEX_RA_LEN 1 573 #define BLE_MESH_DEVICE_APPEARANCE_LEN 2 574 #define BLE_MESH_DEVICE_COUNTRY_OF_ORIGIN_LEN 2 575 #define BLE_MESH_DEVICE_DATE_OF_MANUFACTURE_LEN 3 576 #define BLE_MESH_DEVICE_ENERGY_USE_SINCE_TURN_ON_LEN 3 577 #define BLE_MESH_DEVICE_FIRMWARE_REVISION_LEN 8 578 #define BLE_MESH_DEVICE_GLOBAL_TRADE_ITEM_NUMBER_LEN 6 579 #define BLE_MESH_DEVICE_HARDWARE_REVISION_LEN 16 580 #define BLE_MESH_DEVICE_MANUFACTURER_NAME_LEN 36 581 #define BLE_MESH_DEVICE_MODEL_NUMBER_LEN 24 582 #define BLE_MESH_DEVICE_OPERATING_TEMPERATURE_RANGE_SPECIFICATION_LEN 4 583 #define BLE_MESH_DEVICE_OPERATING_TEMPERATURE_STATISTICAL_VALUES_LEN 9 584 #define BLE_MESH_DEVICE_OVER_TEMPERATURE_EVENT_STATISTICS_LEN 6 585 #define BLE_MESH_DEVICE_POWER_RANGE_SPECIFICATION_LEN 9 586 #define BLE_MESH_DEVICE_RUNTIME_SINCE_TURN_ON_LEN 3 587 #define BLE_MESH_DEVICE_RUNTIME_WARRANTY_LEN 3 588 #define BLE_MESH_DEVICE_SERIAL_NUMBER_LEN 16 589 #define BLE_MESH_DEVICE_SOFTWARE_REVISION_LEN 8 590 #define BLE_MESH_DEVICE_UNDER_TEMPERATURE_EVENT_STATISTICS_LEN 6 591 #define BLE_MESH_INDOOR_AMBIENT_TEMPERATURE_STATISTICAL_VALUES_LEN 5 592 #define BLE_MESH_INITIAL_CIE_1931_CHROMATICITY_COORDINATES_LEN 4 593 #define BLE_MESH_INITIAL_CORRELATED_COLOR_TEMPERATURE_LEN 2 594 #define BLE_MESH_INITIAL_LUMINOUS_FLUX_LEN 2 595 #define BLE_MESH_INITIAL_PLANCKIAN_DISTANCE_LEN 2 596 #define BLE_MESH_INPUT_CURRENT_RANGE_SPECIFICATION_LEN 6 597 #define BLE_MESH_INPUT_CURRENT_STATISTICS_LEN 9 598 #define BLE_MESH_INPUT_OVER_CURRENT_EVENT_STATISTICS_LEN 6 599 #define BLE_MESH_INPUT_OVER_RIPPLE_VOLTAGE_EVENT_STATISTICS_LEN 6 600 #define BLE_MESH_INPUT_OVER_VOLTAGE_EVENT_STATISTICS_LEN 6 601 #define BLE_MESH_INPUT_UNDER_CURRENT_EVENT_STATISTICS_LEN 6 602 #define BLE_MESH_INPUT_UNDER_VOLTAGE_EVENT_STATISTICS_LEN 6 603 #define BLE_MESH_INPUT_VOLTAGE_RANGE_SPECIFICATION_LEN 6 604 #define BLE_MESH_INPUT_VOLTAGE_RIPPLE_SPECIFICATION_LEN 1 605 #define BLE_MESH_INPUT_VOLTAGE_STATISTICS_LEN 9 606 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_ON_LEN 3 607 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_PROLONG_LEN 3 608 #define BLE_MESH_LIGHT_CONTROL_AMBIENT_LUXLEVEL_STANDBY_LEN 3 609 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_ON_LEN 2 610 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_PROLONG_LEN 2 611 #define BLE_MESH_LIGHT_CONTROL_LIGHTNESS_STANDBY_LEN 2 612 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_ACCURACY_LEN 1 613 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KID_LEN 4 614 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KIU_LEN 4 615 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KPD_LEN 4 616 #define BLE_MESH_LIGHT_CONTROL_REGULATOR_KPU_LEN 4 617 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_LEN 3 618 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_ON_LEN 3 619 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_STANDBY_AUTO_LEN 3 620 #define BLE_MESH_LIGHT_CONTROL_TIME_FADE_STANDBY_MANUAL_LEN 3 621 #define BLE_MESH_LIGHT_CONTROL_TIME_OCCUPANCY_DELAY_LEN 3 622 #define BLE_MESH_LIGHT_CONTROL_TIME_PROLONG_LEN 3 623 #define BLE_MESH_LIGHT_CONTROL_TIME_RUN_ON_LEN 3 624 #define BLE_MESH_LUMEN_MAINTENANCE_FACTOR_LEN 1 625 #define BLE_MESH_LUMINOUS_EFFICACY_LEN 2 626 #define BLE_MESH_LUMINOUS_ENERGY_SINCE_TURN_ON_LEN 3 627 #define BLE_MESH_LUMINOUS_EXPOSURE_LEN 3 628 #define BLE_MESH_LUMINOUS_FLUX_RANGE_LEN 4 629 #define BLE_MESH_MOTION_SENSED_LEN 1 630 #define BLE_MESH_MOTION_THRESHOLD_LEN 1 631 #define BLE_MESH_OPEN_CIRCUIT_EVENT_STATISTICS_LEN 6 632 #define BLE_MESH_OUTDOOR_STATISTICAL_VALUES_LEN 5 633 #define BLE_MESH_OUTPUT_CURRENT_RANGE_LEN 4 634 #define BLE_MESH_OUTPUT_CURRENT_STATISTICS_LEN 9 635 #define BLE_MESH_OUTPUT_RIPPLE_VOLTAGE_SPECIFICATION_LEN 1 636 #define BLE_MESH_OUTPUT_VOLTAGE_RANGE_LEN 6 637 #define BLE_MESH_OUTPUT_VOLTAGE_STATISTICS_LEN 9 638 #define BLE_MESH_OVER_OUTPUT_RIPPLE_VOLTAGE_EVENT_STATISTICS_LEN 6 639 #define BLE_MESH_PEOPLE_COUNT_LEN 2 640 #define BLE_MESH_PRESENCE_DETECTED_LEN 1 641 #define BLE_MESH_PRESENT_AMBIENT_LIGHT_LEVEL_LEN 3 642 #define BLE_MESH_PRESENT_AMBIENT_TEMPERATURE_LEN 1 643 #define BLE_MESH_PRESENT_CIE_1931_CHROMATICITY_LEN 4 644 #define BLE_MESH_PRESENT_CORRELATED_COLOR_TEMPERATURE_LEN 2 645 #define BLE_MESH_PRESENT_DEVICE_INPUT_POWER_LEN 3 646 #define BLE_MESH_PRESENT_DEVICE_OPERATING_EFFICIENCY_LEN 1 647 #define BLE_MESH_PRESENT_DEVICE_OPERATING_TEMPERATURE_LEN 2 648 #define BLE_MESH_PRESENT_ILLUMINANCE_LEN 3 649 #define BLE_MESH_PRESENT_INDOOR_AMBIENT_TEMPERATURE_LEN 1 650 #define BLE_MESH_PRESENT_INPUT_CURRENT_LEN 2 651 #define BLE_MESH_PRESENT_INPUT_RIPPLE_VOLTAGE_LEN 1 652 #define BLE_MESH_PRESENT_INPUT_VOLTAGE_LEN 2 653 #define BLE_MESH_PRESENT_LUMINOUS_FLUX_LEN 2 654 #define BLE_MESH_PRESENT_OUTDOOR_AMBIENT_TEMPERATURE_LEN 1 655 #define BLE_MESH_PRESENT_OUTPUT_CURRENT_LEN 2 656 #define BLE_MESH_PRESENT_OUTPUT_VOLTAGE_LEN 2 657 #define BLE_MESH_PRESENT_PLANCKIAN_DISTANCE_LEN 2 658 #define BLE_MESH_PRESENT_RELATIVE_OUTPUT_RIPPLE_VOLTAGE_LEN 1 659 #define BLE_MESH_RELATIVE_DEVICE_ENERGY_USE_IN_A_PERIOD_OF_DAY_LEN 5 660 #define BLE_MESH_RELATIVE_DEVICE_RUNTIME_IN_A_GENERIC_LEVEL_RANGE_LEN 5 661 #define BLE_MESH_RELATIVE_EXPOSURE_TIME_IN_AN_ILLUMINANCE_RANGE_LEN 5 662 #define BLE_MESH_RELATIVE_RUNTIME_IN_A_CORRELATED_COLOR_TEMPERATURE_RANGE_LEN 3 663 #define BLE_MESH_RELATIVE_RUNTIME_IN_A_DEVICE_OPERATING_TEMPERATURE_RANGE_LEN 3 664 #define BLE_MESH_RELATIVE_RUNTIME_IN_AN_INPUT_CURRENT_RANGE_LEN 5 665 #define BLE_MESH_RELATIVE_RUNTIME_IN_AN_INPUT_VOLTAGE_RANGE_LEN 5 666 #define BLE_MESH_SHORT_CIRCUIT_EVENT_STATISTICS_LEN 6 667 #define BLE_MESH_TIME_SINCE_MOTION_SENSED_LEN 2 668 #define BLE_MESH_TIME_SINCE_PRESENCE_DETECTED_LEN 2 669 #define BLE_MESH_TOTAL_DEVICE_ENERGY_USE_LEN 3 670 #define BLE_MESH_TOTAL_DEVICE_OFF_ON_CYCLES_LEN 3 671 #define BLE_MESH_TOTAL_DEVICE_POWER_ON_CYCLES_LEN 3 672 #define BLE_MESH_TOTAL_DEVICE_POWER_ON_TIME_LEN 3 673 #define BLE_MESH_TOTAL_DEVICE_RUNTIME_LEN 3 674 #define BLE_MESH_TOTAL_LIGHT_EXPOSURE_TIME_LEN 3 675 #define BLE_MESH_TOTAL_LUMINOUS_ENERGY_LEN 3 676 #define BLE_MESH_DESIRED_AMBIENT_TEMPERATURE_LEN 1 677 #define BLE_MESH_PRECISE_TOTAL_DEVICE_ENERGY_USE_LEN 4 678 #define BLE_MESH_POWER_FACTOR_LEN 1 679 #define BLE_MESH_SENSOR_GAIN_LEN 4 680 #define BLE_MESH_PRECISE_PRESENT_AMBIENT_TEMPERATURE_LEN 2 681 #define BLE_MESH_PRESENT_AMBIENT_RELATIVE_HUMIDITY_LEN 2 682 #define BLE_MESH_PRESENT_AMBIENT_CARBON_DIOXIDE_CONCENTRATION_LEN 2 683 #define BLE_MESH_PRESENT_AMBIENT_VOLATILE_ORGANIC_COMPOUNDS_CONCENTRATION_LEN 2 684 #define BLE_MESH_PRESENT_AMBIENT_NOISE_LEN 1 685 #define BLE_MESH_ACTIVE_ENERGY_LOADSIDE_LEN 4 686 #define BLE_MESH_ACTIVE_POWER_LOADSIDE_LEN 3 687 #define BLE_MESH_AIR_PRESSURE_LEN 4 688 #define BLE_MESH_APPARENT_ENERGY_LEN 4 689 #define BLE_MESH_APPARENT_POWER_LEN 3 690 #define BLE_MESH_APPARENT_WIND_DIRECTION_LEN 2 691 #define BLE_MESH_APPARENT_WIND_SPEED_LEN 2 692 #define BLE_MESH_DEW_POINT_LEN 1 693 #define BLE_MESH_EXTERNAL_SUPPLY_VOLTAGE_LEN 3 694 #define BLE_MESH_EXTERNAL_SUPPLY_VOLTAGE_FREQUENCY_LEN 2 695 #define BLE_MESH_GUST_FACTOR_LEN 1 696 #define BLE_MESH_HEAT_INDEX_LEN 1 697 #define BLE_MESH_LIGHT_DISTRIBUTION_LEN 1 698 #define BLE_MESH_LIGHT_SOURCE_CURRENT_LEN 3 699 #define BLE_MESH_LIGHT_SOURCE_ON_TIME_NOT_RESETTABLE_LEN 4 700 #define BLE_MESH_LIGHT_SOURCE_ON_TIME_RESETTABLE_LEN 4 701 #define BLE_MESH_LIGHT_SOURCE_OPEN_CIRCUIT_STATISTICS_LEN 6 702 #define BLE_MESH_LIGHT_SOURCE_OVERALL_FAILURES_STATISTICS_LEN 6 703 #define BLE_MESH_LIGHT_SOURCE_SHORT_CIRCUIT_STATISTICS_LEN 6 704 #define BLE_MESH_LIGHT_SOURCE_START_COUNTER_RESETTABLE_LEN 3 705 #define BLE_MESH_LIGHT_SOURCE_TEMPERATURE_LEN 2 706 #define BLE_MESH_LIGHT_SOURCE_THERMAL_DERATING_STATISTICS_LEN 6 707 #define BLE_MESH_LIGHT_SOURCE_THERMAL_SHUTDOWN_STATISTICS_LEN 6 708 #define BLE_MESH_LIGHT_SOURCE_TOTAL_POWER_ON_CYCLES_LEN 3 709 #define BLE_MESH_LIGHT_SOURCE_VOLTAGE_LEN 3 710 #define BLE_MESH_LUMINAIRE_COLOR_LEN 24 711 #define BLE_MESH_LUMINAIRE_IDENTIFICATION_NUMBER_LEN 24 712 #define BLE_MESH_LUMINAIRE_MANUFACTURER_GTIN_LEN 6 713 #define BLE_MESH_LUMINAIRE_NOMINAL_INPUT_POWER_LEN 3 714 #define BLE_MESH_LUMINAIRE_NOMINAL_MAXIMUM_AC_MAINS_VOLTAGE_LEN 2 715 #define BLE_MESH_LUMINAIRE_NOMINAL_MINIMUM_AC_MAINS_VOLTAGE_LEN 2 716 #define BLE_MESH_LUMINAIRE_POWER_AT_MINIMUM_DIM_LEVEL_LEN 3 717 #define BLE_MESH_LUMINAIRE_TIME_OF_MANUFACTURE_LEN 3 718 #define BLE_MESH_MAGNETIC_DECLINATION_LEN 2 719 #define BLE_MESH_MAGNETIC_FLUX_DENSITY_2D_LEN 4 720 #define BLE_MESH_MAGNETIC_FLUX_DENSITY_3D_LEN 6 721 #define BLE_MESH_NOMINAL_LIGHT_OUTPUT_LEN 3 722 #define BLE_MESH_OVERALL_FAILURE_CONDITION_LEN 6 723 #define BLE_MESH_POLLEN_CONCENTRATION_LEN 3 724 #define BLE_MESH_PRESENT_INDOOR_RELATIVE_HUMIDITY_LEN 2 725 #define BLE_MESH_PRESENT_OUTDOOR_RELATIVE_HUMIDITY_LEN 2 726 #define BLE_MESH_PRESSURE_LEN 4 727 #define BLE_MESH_RAINFALL_LEN 2 728 #define BLE_MESH_RATED_MEDIAN_USEFUL_LIFE_OF_LUMINAIRE_LEN 3 729 #define BLE_MESH_RATED_MEDIAN_USEFUL_LIGHT_SOURCE_STARTS_LEN 3 730 #define BLE_MESH_REFERENCE_TEMPERATURE_LEN 2 731 #define BLE_MESH_TOTAL_DEVICE_STARTS_LEN 3 732 #define BLE_MESH_TRUE_WIND_DIRECTION_LEN 2 733 #define BLE_MESH_TRUE_WIND_SPEED_LEN 2 734 #define BLE_MESH_UV_INDEX_LEN 1 735 #define BLE_MESH_WIND_CHILL_LEN 1 736 #define BLE_MESH_LIGHT_SOURCE_TYPE_LEN 1 737 #define BLE_MESH_LUMINAIRE_IDENTIFICATION_STRING_LEN 64 738 #define BLE_MESH_OUTPUT_POWER_LIMITATION_LEN 6 739 #define BLE_MESH_THERMAL_DERATING_LEN 6 740 #define BLE_MESH_OUTPUT_CURRENT_PERCENT_LEN 1 741 742 /** 743 * @brief BLE Mesh Device Property referenced Characteristic UUIDs 744 */ 745 #define BLE_MESH_UUID_AVERAGE_CURRENT_VAL 0x2AE0 746 #define BLE_MESH_UUID_AVERAGE_VOLTAGE_VAL 0x2AE1 747 #define BLE_MESH_UUID_BOOLEAN_VAL 0x2AE2 748 #define BLE_MESH_UUID_CHROMATIC_DISTANCE_FROM_PLANCKIAN_VAL 0x2AE3 749 #define BLE_MESH_UUID_CHROMATICITY_COORDINATE_VAL 0x2B1C 750 #define BLE_MESH_UUID_CHROMATICITY_COORDINATES_VAL 0x2AE4 751 #define BLE_MESH_UUID_CHROMATICITY_IN_CCT_AND_DUV_VALUES_VAL 0x2AE5 752 #define BLE_MESH_UUID_CHROMATICITY_TOLERANCE_VAL 0x2AE6 753 #define BLE_MESH_UUID_CIE_13_3_1995_COLOR_RENDERING_INDEX_VAL 0x2AE7 754 #define BLE_MESH_UUID_COEFFICIENT_VAL 0x2AE8 755 #define BLE_MESH_UUID_CORRELATED_COLOR_TEMPERATURE_VAL 0x2AE9 756 #define BLE_MESH_UUID_COUNT_16_VAL 0x2AEA 757 #define BLE_MESH_UUID_COUNT_24_VAL 0x2AEB 758 #define BLE_MESH_UUID_COUNTRY_CODE_VAL 0x2AEC 759 #define BLE_MESH_UUID_DATE_UTC_VAL 0x2AED 760 #define BLE_MESH_UUID_ELECTRIC_CURRENT_VAL 0x2AEE 761 #define BLE_MESH_UUID_ELECTRIC_CURRENT_RANGE_VAL 0x2AEF 762 #define BLE_MESH_UUID_ELECTRIC_CURRENT_SPECIFICATION_VAL 0x2AF0 763 #define BLE_MESH_UUID_ELECTRIC_CURRENT_STATISTICS_VAL 0x2AF1 764 #define BLE_MESH_UUID_ENERGY_VAL 0x2AF2 765 #define BLE_MESH_UUID_ENERGY_IN_A_PERIOD_OF_DAY_VAL 0x2AF3 766 #define BLE_MESH_UUID_EVENT_STATISTICS_VAL 0x2AF4 767 #define BLE_MESH_UUID_FIXED_STRING_16_VAL 0x2AF5 768 #define BLE_MESH_UUID_FIXED_STRING_24_VAL 0x2AF6 769 #define BLE_MESH_UUID_FIXED_STRING_36_VAL 0x2AF7 770 #define BLE_MESH_UUID_FIXED_STRING_8_VAL 0x2AF8 771 #define BLE_MESH_UUID_GENERIC_LEVEL_VAL 0x2AF9 772 #define BLE_MESH_UUID_GLOBAL_TRADE_ITEM_NUMBER_VAL 0x2AFA 773 #define BLE_MESH_UUID_ILLUMINANCE_VAL 0x2AFB 774 #define BLE_MESH_UUID_LUMINOUS_EFFICACY_VAL 0x2AFC 775 #define BLE_MESH_UUID_LUMINOUS_ENERGY_VAL 0x2AFD 776 #define BLE_MESH_UUID_LUMINOUS_EXPOSURE_VAL 0x2AFE 777 #define BLE_MESH_UUID_LUMINOUS_FLUX_VAL 0x2AFF 778 #define BLE_MESH_UUID_LUMINOUS_FLUX_RANGE_VAL 0x2B00 779 #define BLE_MESH_UUID_LUMINOUS_INTENSITY_VAL 0x2B01 780 #define BLE_MESH_UUID_MASS_FLOW_VAL 0x2B02 781 /** 782 * The following four have been defined in mesh_uuid.h 783 * #define BLE_MESH_UUID_MESH_PROV_DATA_IN_VAL 0x2ADB 784 * #define BLE_MESH_UUID_MESH_PROV_DATA_OUT_VAL 0x2ADC 785 * #define BLE_MESH_UUID_MESH_PROXY_DATA_IN_VAL 0x2ADD 786 * #define BLE_MESH_UUID_MESH_PROXY_DATA_OUT_VAL 0x2ADE 787 */ 788 #define BLE_MESH_UUID_PERCEIVED_LIGHTNESS_VAL 0x2B03 789 #define BLE_MESH_UUID_PERCENTAGE_8_VAL 0x2B04 790 #define BLE_MESH_UUID_POWER_VAL 0x2B05 791 #define BLE_MESH_UUID_POWER_SPECIFICATION_VAL 0x2B06 792 #define BLE_MESH_UUID_RELATIVE_RUNTIME_IN_A_CURRENT_RANGE_VAL 0x2B07 793 #define BLE_MESH_UUID_RELATIVE_RUNTIME_IN_A_GENERIC_LEVEL_RANGE_VAL 0x2B08 794 #define BLE_MESH_UUID_RELATIVE_VALUE_IN_A_PERIOD_OF_DAY_VAL 0x2B0B 795 #define BLE_MESH_UUID_RELATIVE_VALUE_IN_A_TEMPERATURE_RANGE_VAL 0x2B0C 796 #define BLE_MESH_UUID_RELATIVE_VALUE_IN_A_VOLTAGE_RANGE_VAL 0x2B09 797 #define BLE_MESH_UUID_RELATIVE_VALUE_IN_AN_ILLUMINANCE_RANGE_VAL 0x2B0A 798 #define BLE_MESH_UUID_TEMPERATURE_8_VAL 0x2B0D 799 #define BLE_MESH_UUID_TEMPERATURE_8_IN_A_PERIOD_OF_DAY_VAL 0x2B0E 800 #define BLE_MESH_UUID_TEMPERATURE_8_STATISTICS_VAL 0x2B0F 801 #define BLE_MESH_UUID_TEMPERATURE_RANGE_VAL 0x2B10 802 #define BLE_MESH_UUID_TEMPERATURE_STATISTICS_VAL 0x2B11 803 #define BLE_MESH_UUID_TIME_DECIHOUR_8_VAL 0x2B12 804 #define BLE_MESH_UUID_TIME_EXPONENTIAL_8_VAL 0x2B13 805 #define BLE_MESH_UUID_TIME_HOUR_24_VAL 0x2B14 806 #define BLE_MESH_UUID_TIME_MILLISECOND_24_VAL 0x2B15 807 #define BLE_MESH_UUID_TIME_SECOND_16_VAL 0x2B16 808 #define BLE_MESH_UUID_TIME_SECOND_8_VAL 0x2B17 809 #define BLE_MESH_UUID_VOLTAGE_VAL 0x2B18 810 #define BLE_MESH_UUID_VOLTAGE_SPECIFICATION_VAL 0x2B19 811 #define BLE_MESH_UUID_VOLTAGE_STATISTICS_VAL 0x2B1A 812 #define BLE_MESH_UUID_VOLUME_FLOW_VAL 0x2B1B 813 814 /** 815 * @brief BLE Mesh Device Property referenced Characteristic Type Definitions 816 */ 817 818 /* Unit is in degrees Celsius with a resolution of 0.01 degrees Celsius. */ 819 typedef int16_t bt_mesh_temperature_t; 820 821 typedef uint16_t bt_mesh_gap_appearance_t; 822 823 /* Mesh Characteristics Type Definitions */ 824 825 /* This characteristic represents an electric current. 826 * Note: Unit is ampere with a resolution of 0.01. 827 * Minimum value: 0, maximum value: 655.34; 828 * A value of 0xFFFF represents 'value is not known'. 829 */ 830 typedef uint16_t bt_mesh_electric_current_t; 831 832 /* The Time Exponential 8 characteristic is used to represent a measure of period of 833 * time in seconds. 834 * Note: The time duration is given by the value 1.1^(N-64) in seconds, with N being 835 * the raw 8-bit value; 836 * Minimum value: 0.0, maximum value: 73216705; 837 * A raw value of 0x00 represents 0 seconds, and a raw value of 0xFF represents 838 * the total life of the device. 839 */ 840 typedef uint8_t bt_mesh_time_exponential_8_t; 841 842 /* The Voltage characteristic is used to represent a measure of positive electric 843 * potential difference in units of volts. 844 * Note: Unit is volt with a resolution of 1/64V; 845 * Minimum value: 0.0, maximum value: 1022.0; 846 * A value of 0xFFFF represents 'value is not known'. The minimum representable 847 * value represents the minimum value or lower, the maximum representable value 848 * represents the maximum value or higher. 849 */ 850 typedef uint16_t bt_mesh_voltage_t; 851 852 /* This characteristic aggregates the Electric Current characteristic and instance of 853 * the Time Exponential 8 characteristic. 854 */ 855 typedef struct __packed average_current { 856 bt_mesh_electric_current_t electric_current; 857 bt_mesh_time_exponential_8_t sensing_duration; 858 } bt_mesh_average_current_t; 859 860 /* This characteristic aggregates the Voltage characteristic and instance of the Time 861 * Exponential 8 characteristic. 862 */ 863 typedef struct __packed average_voltage { 864 bt_mesh_voltage_t voltage; 865 bt_mesh_time_exponential_8_t sensing_duration; 866 } bt_mesh_average_voltage_t; 867 868 /* The Boolean characteristic defines the predefined Boolean values as an enumeration. 869 * Key | Value 870 * 0 | False 871 * 1 | True 872 * 2 to 255 | Prohibited 873 */ 874 typedef uint8_t bt_mesh_boolean_t; 875 876 /* The Chromatic Distance From Planckian characteristic represents a distance of a 877 * chromaticity coordinate from the Planckian locus in the (u',2/3 v') diagram as 878 * defined by ANSI standard C78.377-2008. The distance is positive if the chromaticity 879 * coordinate is located above the Planckian locus (i.e. has as higher y value than the 880 * Planckian), and negative if it is located below. The distance is only valid within 881 * the range from -0.05 to 0.05. 882 * Note: Unit is unitless with a resolution of 0.00001; 883 * Minimum value: -0.05, maximum value: 0.05; 884 * A value of 0xFFFF represents 'value is not known'; 885 * A value of 0xFFFE represents 'value is not valid'. 886 */ 887 typedef int16_t bt_mesh_chromatic_distance_from_planckian_t; 888 889 /* This characteristic represents a chromaticity coordinate in a color diagram such as 890 * the CIE1931 diagram. It can represent an x or y coordinate. 891 * Note: Unit is unitless with a resolution of 1/65535; 892 * Minimum value: 0, maximum value: 1.0. 893 */ 894 typedef uint16_t bt_mesh_chromaticity_coordinate_t; 895 896 /* This characteristic represents a chromaticity coordinate as a tuple with an x and 897 * y coordinate. 898 */ 899 typedef struct __packed chromaticity_coordinates { 900 bt_mesh_chromaticity_coordinate_t chromaticity_x_coordinate; 901 bt_mesh_chromaticity_coordinate_t chromaticity_y_coordinate; 902 } bt_mesh_chromaticity_coordinates_t; 903 904 /* The Correlated Color Temperature characteristic is used to represent correlated color 905 * temperature in a range from 800 to 65534 Kelvin with a resolution of 1 Kelvin. 906 * Note: Unit is Kelvin with a resolution of 1; 907 * Minimum value: 800, maximum value: 65534; 908 * A value of 0xFFFF represents 'value is not known'. 909 */ 910 typedef uint16_t bt_mesh_correlated_color_temperature_t; 911 912 /* The Chromaticity In CCT And Duv Values characteristic is a composite characteristic 913 * consisting of the Correlated Color Temperature characteristic and the Chromatic 914 * Distance From Planckian characteristic. 915 */ 916 typedef struct __packed chromaticity_in_cct_and_duv_values { 917 bt_mesh_correlated_color_temperature_t correlated_color_temperature; 918 bt_mesh_chromatic_distance_from_planckian_t chromaticity_distance_from_planckian; 919 } bt_mesh_chromaticity_in_cct_and_duv_values_t; 920 921 /* The Chromaticity Tolerance characteristic is a tolerance of a tuple of chromaticity 922 * values represented as a value of a radius of a circle in the CIE 1976 (u',v') diagram; 923 * value corresponding to the 3-sigma values of the expected chromaticity deviations. 924 * Note: Unit is unitless with a resolution of 0.0001; 925 * Minimum value: 0, maximum value: 0.0255. 926 */ 927 typedef uint8_t bt_mesh_chromaticity_tolerance_t; 928 929 /* The CIE 13.3-1995 Color Rendering Index characteristic is a color rendition index value 930 * for a color patch as calculated in accordance with the CIE 13.3-1995 standard. 931 * Note: Unit is unitless with a resolution of 1; 932 * Minimum value: -128, maximum value: 100. 933 */ 934 typedef int8_t bt_mesh_cie_13_3_1995_color_rendering_index_t; 935 936 /* The Coefficient characteristic is used to represent a general coefficient value. */ 937 typedef float bt_mesh_coefficient_t; 938 939 /* The Count 16 characteristic is used to represent a general count value. 940 * Note: Unit is unitless with a resolution of 1; 941 * Minimum value: 0, maximum value 65534; 942 * A value of 0xFFFF represents 'value is not known'. 943 */ 944 typedef uint16_t bt_mesh_count_16_t; 945 946 /* The Count 24 characteristic is used to represent a general count value. 947 * Note: Unit is unitless with a resolution of 1; 948 * Minimum value: 0, maximum value 16777214; 949 * A value of 0xFFFFFF represents 'value is not known'. 950 */ 951 typedef uint8_t bt_mesh_count_24_t[3]; 952 953 /* This characteristic represents a country or dependent areas in accordance with 954 * the ISO 3166-1 Numeric standard. 955 * Note: Unit is unitless with a resolution of 1; 956 * Minimum value: 0, maximum value: 4095; 957 * A value of 0xFFFF represents 'value is not known'. 958 */ 959 typedef uint16_t bt_mesh_country_code_t; 960 961 /* Date as days elapsed since the Epoch (Jan 1, 1970) in the Coordinated Universal 962 * Time (UTC) time zone. 963 * Note: Unit is a day with a resolution of 1; 964 * Minimum value: 1, maximum value: 16777214; 965 * A value of 0x000000 represents 'value is not known'. 966 */ 967 typedef uint8_t bt_mesh_date_utc_t[3]; 968 969 /* This characteristic aggregates two instances of the Electric Current characteristic 970 * to represent a range of Electric Current values. 971 */ 972 typedef struct __packed electric_current_range { 973 bt_mesh_electric_current_t minimum_electric_current_value; 974 bt_mesh_electric_current_t maximum_electric_current_value; 975 } bt_mesh_electric_current_range_t; 976 977 /* This characteristic aggregates three instances of the Electric Current characteristic 978 * to represent a specification of electric current values. 979 */ 980 typedef struct __packed electric_current_specification { 981 bt_mesh_electric_current_t minimum_electric_current_value; 982 bt_mesh_electric_current_t typical_electric_current_value; 983 bt_mesh_electric_current_t maximum_electric_current_value; 984 } bt_mesh_electric_current_specification_t; 985 986 /* This characteristic aggregates four instances of the Electric Current characteristic 987 * with a Sensing Duration to represent a set of statistical electric current values. 988 */ 989 typedef struct __packed electric_current_statistics { 990 bt_mesh_electric_current_t average_electric_current_value; 991 bt_mesh_electric_current_t standard_electric_current_value; 992 bt_mesh_electric_current_t minimum_electric_current_value; 993 bt_mesh_electric_current_t maximum_electric_current_value; 994 bt_mesh_time_exponential_8_t sensing_duration; 995 } bt_mesh_electric_current_statistics_t; 996 997 /* The Energy characteristic is used to represent a measure of energy in units of 998 * kilowatt hours. 999 * Note: Unit is kilowatt-hour with a resolution of 1; 1000 * Minimum value: 0, maximum value: 16777214; 1001 * A value of 0xFFFFFF represents ‘value is not known’. 1002 */ 1003 typedef uint8_t bt_mesh_energy_t[3]; 1004 1005 /* The Time Decihour 8 characteristic is used to represent a period of time in 1006 * tenths of an hour. 1007 * Note: Unit is hour with a resolution of 0.1; 1008 * Minimum value: 0.0, maximum value: 24.0; 1009 * A value of 0xFF represents 'value is not known'. All other values are Prohibited. 1010 */ 1011 typedef uint8_t bt_mesh_time_decihour_8_t; 1012 1013 /* This characteristic aggregates the Energy characteristic, and two instances of 1014 * the Time Decihour 8 characteristic, to represent energy use in a period of day. 1015 */ 1016 typedef struct __packed energy_in_a_period_of_day { 1017 bt_mesh_energy_t energy_value; 1018 bt_mesh_time_decihour_8_t start_time; 1019 bt_mesh_time_decihour_8_t end_time; 1020 } bt_mesh_energy_in_a_period_of_day_t; 1021 1022 /* The Time Second 16 characteristic is used to represent a period of time with a 1023 * unit of 1 second. 1024 * Note: Unit is second with a resolution of 1; 1025 * Minimum value: 0, maximum value: 65534; 1026 * A value of 0xFFFF represents 'value is not known'. 1027 */ 1028 typedef uint16_t bt_mesh_time_second_16_t; 1029 1030 /* This characteristic aggregates the Count 16 characteristic, two instances of the 1031 * Time Decihour 8 characteristic and an instance of the Sensing Duration characteristic, 1032 * to represent statistical values of events. 1033 */ 1034 typedef struct __packed event_statistics { 1035 bt_mesh_count_16_t number_of_events; 1036 bt_mesh_time_second_16_t average_event_duration; 1037 bt_mesh_time_exponential_8_t time_elapsed_since_last_event; 1038 bt_mesh_time_exponential_8_t sensing_duration; 1039 } bt_mesh_event_statistics_t; 1040 1041 /* The Fixed String 16 characteristic represents a 16-octet UTF-8 string. */ 1042 typedef char bt_mesh_fixed_string_16_t[16]; 1043 1044 /* The Fixed String 24 characteristic represents a 24-octet UTF-8 string. */ 1045 typedef char bt_mesh_fixed_string_24_t[24]; 1046 1047 /* The Fixed String 36 characteristic represents a 36-octet UTF-8 string. */ 1048 typedef char bt_mesh_fixed_string_36_t[36]; 1049 1050 /* The Fixed String 8 characteristic represents an 8-octet UTF-8 string. */ 1051 typedef char bt_mesh_fixed_string_8_t[8]; 1052 1053 /* The Generic Level characteristic represents a general level value of a 1054 * setting of a device. 1055 * Note: Unit is unitless with a resolution of 1; 1056 * Minimum value: 0, maximum value: 65535. 1057 */ 1058 typedef uint16_t bt_mesh_generic_level_t; 1059 1060 /* The Global Trade Item Number characteristic represents an identifier as 1061 * issued by GS1 General Specifications, which may consist up to 14 digits, 1062 * and is here represented as a 48-bit unsigned integer. 1063 */ 1064 typedef uint8_t bt_mesh_global_trade_item_number_t[6]; 1065 1066 /* The Illuminance characteristic is used to represent a measure of illuminance 1067 * in units of lux. 1068 * Note: Unit is lux with a resolution of 0.01; 1069 * Minimum value: 0, maximum value: 167772.14; 1070 * A value of 0xFFFFFF represents 'value is not known'. 1071 */ 1072 typedef uint8_t bt_mesh_illuminance_t[3]; 1073 1074 /* The Luminous Efficacy characteristic is used to represent a measure of luminous 1075 * efficacy in units of lumen per watt. 1076 * Note: Unit is lumen per watt with a resolution of 0.1; 1077 * Minimum value: 0, maximum value: 1800; 1078 * A value of 0xFFFF represents 'value is not known'. All other values are Prohibited. 1079 */ 1080 typedef uint16_t bt_mesh_luminous_efficacy_t; 1081 1082 /* The Luminous Energy characteristic is used to represent a measure of luminous 1083 * energy in units of lumen hour. 1084 * Note: Unit is lumen hour with a resolution of 1000; 1085 * Minimum value: 0, maximum value: 16777214000; 1086 * A value of 0xFFFFFF represents 'value is not known'. 1087 */ 1088 typedef uint8_t bt_mesh_luminous_energy_t[3]; 1089 1090 /* The Luminous Exposure characteristic is used to represent a measure of luminous 1091 * exposure in units of lux-hour. 1092 * Note: Unit is lux hour with a resolution of 1000; 1093 * Minimum value: 0, maximum value: 16777214000; 1094 * A value of 0xFFFFFF represents 'value is not known'. 1095 */ 1096 typedef uint8_t bt_mesh_luminous_exposure_t[3]; 1097 1098 /* The Luminous Flux characteristic is used to represent a measure of luminous flux 1099 * in units of lumen. 1100 * Note: Unit is lumen with a resolution of 1; 1101 * Minimum value: 0, maximum value: 65534; 1102 * A value of 0xFFFF represents 'value is not known'. 1103 */ 1104 typedef uint16_t bt_mesh_luminous_flux_t; 1105 1106 /* This characteristic aggregates two instances of the Luminous Flux characteristic 1107 * to represent a luminous flux range. 1108 */ 1109 typedef struct __packed luminous_flux_range { 1110 bt_mesh_luminous_flux_t minimum_luminous_flux; 1111 bt_mesh_luminous_flux_t maximum_luminous_flux; 1112 } bt_mesh_luminous_flux_range_t; 1113 1114 /* The Luminous Intensity characteristic is used to represent a luminous intensity of 1115 * a beam of light in units of candela. 1116 * Note: Unit is candela with a resolution of 1; 1117 * Minimum value: 0, maximum value: 65534; 1118 * A value of 0xFFFF represents 'value is not known'. 1119 */ 1120 typedef uint16_t bt_mesh_luminous_intensity_t; 1121 1122 /* The Mass Flow characteristic is used to represent a flow of mass. 1123 * Note: Unit is gram/second with a resolution of 1; 1124 * Minimum value: 0, maximum value: 65534; 1125 * A value of 0xFFFF represents 'value is not known'. 1126 */ 1127 typedef uint16_t bt_mesh_mass_flow_t; 1128 1129 /* The Mesh Provisioning Data In characteristic can be written to send a Proxy PDU 1130 * message containing Provisioning PDU to the Provisioning Server. 1131 */ 1132 struct mesh_provisioning_data_in { 1133 1134 }; 1135 1136 /* The Mesh Provisioning Data Out characteristic can be notified to send a Proxy PDU 1137 * message containing Provisioning PDU from a Provisioning Server to a Provisioning Client. 1138 */ 1139 struct mesh_provisioning_data_out { 1140 1141 }; 1142 1143 /* The Mesh Proxy Data In characteristic is used by the client to send Proxy PDUs to 1144 * the server. 1145 */ 1146 struct mesh_proxy_data_in { 1147 1148 }; 1149 1150 /* The Mesh Proxy Data Out characteristic is used by the server to send Proxy PDUs to 1151 * the client. 1152 */ 1153 struct mesh_proxy_data_out { 1154 1155 }; 1156 1157 /* The Perceived Lightness characteristic is used to represent the perceived lightness 1158 * of a light. 1159 * Note: Unit is unitless with a resolution of 1; 1160 * Minimum value: 0, maximum value: 65535. 1161 */ 1162 typedef uint16_t bt_mesh_perceived_lightness_t; 1163 1164 /* The Percentage 8 characteristic is used to represent a measure of percentage. 1165 * Note: Unit is a percentage with a resolution of 0.5; 1166 * Minimum value: 0, maximum value: 100; 1167 * A value of 0xFF represents 'value is not known'. All other values are Prohibited. 1168 */ 1169 typedef uint8_t bt_mesh_percentage_8_t; 1170 1171 /* The Power characteristic is used to represent a measure of power in units of watts. 1172 * Note: Unit is watt with a resolution of 0.1; 1173 * Minimum value: 0, maximum value: 1677721.4; 1174 * A value of 0xFFFFFF represents 'value is not known'. 1175 */ 1176 typedef uint8_t bt_mesh_power_t[3]; 1177 1178 /* This characteristic aggregates three instances of the Power characteristic to 1179 * represent a specification of Power values. 1180 */ 1181 typedef struct __packed power_specification { 1182 bt_mesh_power_t minimum_power_value; 1183 bt_mesh_power_t typical_power_value; 1184 bt_mesh_power_t maximum_power_value; 1185 } bt_mesh_power_specification_t; 1186 1187 /* This characteristic aggregates the Percentage 8 characteristic and two instances of 1188 * the Electric Current characteristic to represent a relative value in an electric 1189 * current range. 1190 */ 1191 typedef struct __packed relative_runtime_in_a_current_range { 1192 bt_mesh_percentage_8_t relative_runtime_value; 1193 bt_mesh_electric_current_t minimum_current; 1194 bt_mesh_electric_current_t maximum_current; 1195 } bt_mesh_relative_runtime_in_a_current_range_t; 1196 1197 /* This characteristic aggregates the Percentage 8 characteristic and two instances of 1198 * the Generic Level characteristic to represent a runtime in a generic level range. 1199 */ 1200 typedef struct __packed relative_runtime_in_a_generic_level_range { 1201 bt_mesh_percentage_8_t relative_value; 1202 bt_mesh_generic_level_t minimum_generic_level; 1203 bt_mesh_generic_level_t maximum_generic_level; 1204 } bt_mesh_relative_runtime_in_a_generic_level_range_t; 1205 1206 /* This characteristic aggregates the Percentage 8 characteristic, and two instances of 1207 * the Time Decihour 8 characteristic. 1208 */ 1209 typedef struct __packed relative_value_in_a_period_of_day { 1210 bt_mesh_percentage_8_t relative_value; 1211 bt_mesh_time_decihour_8_t start_time; 1212 bt_mesh_time_decihour_8_t end_time; 1213 } bt_mesh_relative_value_in_a_period_of_day_t; 1214 1215 /* This characteristic aggregates the Percentage 8 characteristic, and two instances of 1216 * the Temperature characteristic. 1217 */ 1218 typedef struct __packed relative_value_in_a_temperature_range { 1219 bt_mesh_percentage_8_t relative_value; 1220 bt_mesh_temperature_t minimum_temperature_value; 1221 bt_mesh_temperature_t maximum_temperature_value; 1222 } bt_mesh_relative_value_in_a_temperature_range_t; 1223 1224 /* This characteristic aggregates the Percentage 8 characteristic and two instances of 1225 * the Voltage characteristic to represent a relative value in a voltage range. 1226 */ 1227 typedef struct __packed relative_value_in_a_voltage_range { 1228 bt_mesh_percentage_8_t relative_value; 1229 bt_mesh_voltage_t minimum_voltage; 1230 bt_mesh_voltage_t maximum_voltage; 1231 } bt_mesh_relative_value_in_a_voltage_range_t; 1232 1233 /* This characteristic aggregates the Percentage 8 characteristic and two instances of 1234 * the Illuminance characteristic to represent a relative value in a illuminance range. 1235 */ 1236 typedef struct __packed relative_value_in_an_illuminance_range { 1237 bt_mesh_percentage_8_t relative_value; 1238 bt_mesh_illuminance_t minimum_illuminance; 1239 bt_mesh_illuminance_t maximum_illuminance; 1240 } bt_mesh_relative_value_in_an_illuminance_range_t; 1241 1242 /* The Temperature 8 characteristic is used to represent a measure of temperature with 1243 * a unit of 0.5 degree Celsius. 1244 * Note: Unit is degree Celsius with a resolution of 0.5; 1245 * Minimum value: -64.0, maximum value: 63.5; 1246 * A value of 0xFF represents 'value is not known'. 1247 */ 1248 typedef int8_t bt_mesh_temperature_8_t; 1249 1250 /* This characteristic aggregates the Temperature 8 characteristic, and two instances 1251 * of the Time Decihour 8 characteristic, to represent a temperature value in a period 1252 * of day. 1253 */ 1254 typedef struct __packed temperature_8_in_a_period_of_day { 1255 bt_mesh_temperature_8_t temperature; 1256 bt_mesh_time_decihour_8_t start_time; 1257 bt_mesh_time_decihour_8_t end_time; 1258 } bt_mesh_temperature_8_in_a_period_of_day_t; 1259 1260 /* This characteristic aggregates four instances of the Temperature 8 characteristic, 1261 * and one instance of the Time Exponential 8 characteristic. 1262 */ 1263 typedef struct __packed temperature_8_statistics { 1264 bt_mesh_temperature_8_t average; 1265 bt_mesh_temperature_8_t standard_deviation_value; 1266 bt_mesh_temperature_8_t minimum_value; 1267 bt_mesh_temperature_8_t maximum_value; 1268 bt_mesh_time_exponential_8_t sensing_duration; 1269 } bt_mesh_temperature_8_statistics_t; 1270 1271 /* This characteristic aggregates two instances of the Temperature characteristic to 1272 * represent a temperature range. 1273 */ 1274 typedef struct __packed temperature_range { 1275 bt_mesh_temperature_t minimum_temperature; 1276 bt_mesh_temperature_t maximum_temperature; 1277 } bt_mesh_temperature_range_t; 1278 1279 /* This characteristic aggregates four instances of the Temperature characteristic, 1280 * and one instance of the Time Exponential 8 characteristic. 1281 */ 1282 typedef struct __packed temperature_statistics { 1283 bt_mesh_temperature_t average_temperature; 1284 bt_mesh_temperature_t standard_deviation_temperature; 1285 bt_mesh_temperature_t minimum_temperature; 1286 bt_mesh_temperature_t maximum_temperature; 1287 bt_mesh_time_exponential_8_t sensing_duration; 1288 } bt_mesh_temperature_statistics_t; 1289 1290 /* The Time Hour 24 characteristic is used to represent a period of time in hours. 1291 * Note: Unit is hour with a resolution of 1; 1292 * Minimum value: 0, maximum value: 16777214; 1293 * A value of 0xFFFFFF represents 'value is not known'. 1294 */ 1295 typedef uint8_t bt_mesh_time_hour_24_t[3]; 1296 1297 /* The Time Millisecond 24 characteristic is used to represent a period of time with 1298 * a resolution of 1 millisecond. 1299 * Note: Unit is second with a resolution of 0.001; 1300 * Minimum value: 0, maximum value: 16777.214; 1301 * A value of 0xFFFFFF represents 'value is not known'. 1302 */ 1303 typedef uint8_t bt_mesh_time_millisecond_24_t[3]; 1304 1305 /* The Time Second 8 characteristic is used to represent a period of time with a unit 1306 * of 1 second. 1307 * Note: Unit is second with a resolution of 1; 1308 * Minimum value: 0, maximum value: 254; 1309 * A value of 0xFF represents 'value is not known'. 1310 */ 1311 typedef uint8_t bt_mesh_time_second_8_t; 1312 1313 /* This characteristic aggregates three instances of the Voltage characteristic to 1314 * represent a specification of voltage values. 1315 */ 1316 typedef struct __packed voltage_specification { 1317 bt_mesh_voltage_t minimum_voltage_value; 1318 bt_mesh_voltage_t typical_voltage_value; 1319 bt_mesh_voltage_t maximum_voltage_value; 1320 } bt_mesh_voltage_specification_t; 1321 1322 /* This characteristic aggregates four instances of the Voltage characteristic and an 1323 * instance of the Time Exponential 8 characteristic to represent a set of statistical 1324 * voltage values over a period of time. 1325 */ 1326 typedef struct __packed voltage_statistics { 1327 bt_mesh_voltage_t average_voltage_value; 1328 bt_mesh_voltage_t standard_deviation_voltage_value; 1329 bt_mesh_voltage_t minimum_voltage_value; 1330 bt_mesh_voltage_t maximum_voltage_value; 1331 bt_mesh_time_exponential_8_t sensing_duration; 1332 } bt_mesh_voltage_statistics_t; 1333 1334 /* The Volume Flow characteristic is used to represent a flow of a general volume such 1335 * as a volume of material or gas. 1336 * Note: Unit is liter/second with a resolution of 0.001 (1 milliliter); 1337 * Minimum value: 0, maximum value: 65534; 1338 * A value of 0xFFFF represents 'value is not known'. 1339 */ 1340 typedef uint16_t bt_mesh_volume_flow_t; 1341 1342 /* Mesh Device Property related function */ 1343 1344 uint8_t bt_mesh_get_dev_prop_len(uint16_t prop_id); 1345 1346 #ifdef __cplusplus 1347 } 1348 #endif 1349 1350 #endif /* _DEVICE_PROPERTY_H_ */ 1351