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