classhueplusplus_1_1_sensor.html 75.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hueplusplus: hueplusplus::Sensor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hueplusplus
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehueplusplus.html">hueplusplus</a></li><li class="navelem"><a class="el" href="classhueplusplus_1_1_sensor.html">Sensor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhueplusplus_1_1_sensor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">hueplusplus::Sensor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class for generic or unknown sensor types.  
 <a href="classhueplusplus_1_1_sensor.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_sensor_8h_source.html">hueplusplus/Sensor.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for hueplusplus::Sensor:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classhueplusplus_1_1_sensor__inherit__graph.png" border="0" usemap="#hueplusplus_1_1_sensor_inherit__map" alt="Inheritance graph"/></div>
<map name="hueplusplus_1_1_sensor_inherit__map" id="hueplusplus_1_1_sensor_inherit__map">
<area shape="rect" id="node2" href="classhueplusplus_1_1_base_device.html" title="Base class for physical devices connected to the bridge (sensor or light). " alt="" coords="5,5,191,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for hueplusplus::Sensor:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classhueplusplus_1_1_sensor__coll__graph.png" border="0" usemap="#hueplusplus_1_1_sensor_coll__map" alt="Collaboration graph"/></div>
<map name="hueplusplus_1_1_sensor_coll__map" id="hueplusplus_1_1_sensor_coll__map">
<area shape="rect" id="node2" href="classhueplusplus_1_1_base_device.html" title="Base class for physical devices connected to the bridge (sensor or light). " alt="" coords="5,95,191,121"/>
<area shape="rect" id="node3" href="classhueplusplus_1_1_a_p_i_cache.html" title="Caches API GET requests and refreshes regularly. " alt="" coords="13,5,183,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a84233dc1a8456935c0173acf3712d522"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a84233dc1a8456935c0173acf3712d522">Sensor</a> (int <a class="el" href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">id</a>, const std::shared_ptr&lt; <a class="el" href="classhueplusplus_1_1_a_p_i_cache.html">APICache</a> &gt; &amp;baseCache)</td></tr>
<tr class="memdesc:a84233dc1a8456935c0173acf3712d522"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct <a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a> with shared cache.  <a href="#a84233dc1a8456935c0173acf3712d522">More...</a><br /></td></tr>
<tr class="separator:a84233dc1a8456935c0173acf3712d522"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b7676f01394623c55837112c4d43f67"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a5b7676f01394623c55837112c4d43f67">Sensor</a> (int <a class="el" href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">id</a>, const <a class="el" href="classhueplusplus_1_1_hue_command_a_p_i.html">HueCommandAPI</a> &amp;commands, std::chrono::steady_clock::duration refreshDuration, const nlohmann::json &amp;currentState)</td></tr>
<tr class="memdesc:a5b7676f01394623c55837112c4d43f67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct <a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a>.  <a href="#a5b7676f01394623c55837112c4d43f67">More...</a><br /></td></tr>
<tr class="separator:a5b7676f01394623c55837112c4d43f67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fe3726ee3ac9cb9bf65e9865c6c4697"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhueplusplus_1_1time_1_1_absolute_time.html">time::AbsoluteTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a8fe3726ee3ac9cb9bf65e9865c6c4697">getLastUpdated</a> () const</td></tr>
<tr class="memdesc:a8fe3726ee3ac9cb9bf65e9865c6c4697"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get time of last status update.  <a href="#a8fe3726ee3ac9cb9bf65e9865c6c4697">More...</a><br /></td></tr>
<tr class="separator:a8fe3726ee3ac9cb9bf65e9865c6c4697"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab44dee9934103797382b7cfcc24929d5"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#ab44dee9934103797382b7cfcc24929d5">getState</a> () const</td></tr>
<tr class="memdesc:ab44dee9934103797382b7cfcc24929d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get state object.  <a href="#ab44dee9934103797382b7cfcc24929d5">More...</a><br /></td></tr>
<tr class="separator:ab44dee9934103797382b7cfcc24929d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab864b9a83a9a47e2f1a277dc021c26f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#ab864b9a83a9a47e2f1a277dc021c26f3">setStateAttribute</a> (const std::string &amp;key, const nlohmann::json &amp;value)</td></tr>
<tr class="memdesc:ab864b9a83a9a47e2f1a277dc021c26f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set part of the sensor state.  <a href="#ab864b9a83a9a47e2f1a277dc021c26f3">More...</a><br /></td></tr>
<tr class="separator:ab864b9a83a9a47e2f1a277dc021c26f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28bcad902b4cb179d76a9420ad1dd06c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a28bcad902b4cb179d76a9420ad1dd06c">getStateAddress</a> (const std::string &amp;key) const</td></tr>
<tr class="memdesc:a28bcad902b4cb179d76a9420ad1dd06c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get address of the given state attribute, used for conditions.  <a href="#a28bcad902b4cb179d76a9420ad1dd06c">More...</a><br /></td></tr>
<tr class="separator:a28bcad902b4cb179d76a9420ad1dd06c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6eca69fe2a532c66d320ef959f595a9a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a6eca69fe2a532c66d320ef959f595a9a">isCertified</a> () const</td></tr>
<tr class="memdesc:a6eca69fe2a532c66d320ef959f595a9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the sensor is Hue certified.  <a href="#a6eca69fe2a532c66d320ef959f595a9a">More...</a><br /></td></tr>
<tr class="separator:a6eca69fe2a532c66d320ef959f595a9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91632185b2cf84ac00f67da8e3548d4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#aa91632185b2cf84ac00f67da8e3548d4">isPrimary</a> () const</td></tr>
<tr class="memdesc:aa91632185b2cf84ac00f67da8e3548d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the sensor is primary sensor of the device.  <a href="#aa91632185b2cf84ac00f67da8e3548d4">More...</a><br /></td></tr>
<tr class="separator:aa91632185b2cf84ac00f67da8e3548d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dd55641f02c9a59f69dd37b87f9d621"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3dd55641f02c9a59f69dd37b87f9d621"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a3dd55641f02c9a59f69dd37b87f9d621">asSensorType</a> () const &amp;</td></tr>
<tr class="memdesc:a3dd55641f02c9a59f69dd37b87f9d621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert sensor to a specific type.  <a href="#a3dd55641f02c9a59f69dd37b87f9d621">More...</a><br /></td></tr>
<tr class="separator:a3dd55641f02c9a59f69dd37b87f9d621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aaa1a662822dfb1fc6e70b03c565b56"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a2aaa1a662822dfb1fc6e70b03c565b56"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a2aaa1a662822dfb1fc6e70b03c565b56">asSensorType</a> () &amp;&amp;</td></tr>
<tr class="memdesc:a2aaa1a662822dfb1fc6e70b03c565b56"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert sensor to a specific type.  <a href="#a2aaa1a662822dfb1fc6e70b03c565b56">More...</a><br /></td></tr>
<tr class="separator:a2aaa1a662822dfb1fc6e70b03c565b56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Config attributes</div></td></tr>
<tr class="memitem:a5853efc3712fe6c9e398c5a5b77c4f25"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a5853efc3712fe6c9e398c5a5b77c4f25">hasOn</a> () const</td></tr>
<tr class="memdesc:a5853efc3712fe6c9e398c5a5b77c4f25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has an on attribute.  <a href="#a5853efc3712fe6c9e398c5a5b77c4f25">More...</a><br /></td></tr>
<tr class="separator:a5853efc3712fe6c9e398c5a5b77c4f25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b29e3f514c6af3c219f399c3dac1d42"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a4b29e3f514c6af3c219f399c3dac1d42">isOn</a> () const</td></tr>
<tr class="memdesc:a4b29e3f514c6af3c219f399c3dac1d42"><td class="mdescLeft">&#160;</td><td class="mdescRight">check whether the sensor is turned on  <a href="#a4b29e3f514c6af3c219f399c3dac1d42">More...</a><br /></td></tr>
<tr class="separator:a4b29e3f514c6af3c219f399c3dac1d42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa42407ca9a4ecb0d1f5854f93dc42f71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#aa42407ca9a4ecb0d1f5854f93dc42f71">setOn</a> (bool on)</td></tr>
<tr class="memdesc:aa42407ca9a4ecb0d1f5854f93dc42f71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn sensor on or off.  <a href="#aa42407ca9a4ecb0d1f5854f93dc42f71">More...</a><br /></td></tr>
<tr class="separator:aa42407ca9a4ecb0d1f5854f93dc42f71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa563dc71f6e2606d63917a77dd46d62"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#aaa563dc71f6e2606d63917a77dd46d62">hasBatteryState</a> () const</td></tr>
<tr class="memdesc:aaa563dc71f6e2606d63917a77dd46d62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has a battery state.  <a href="#aaa563dc71f6e2606d63917a77dd46d62">More...</a><br /></td></tr>
<tr class="separator:aaa563dc71f6e2606d63917a77dd46d62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a5e4c75a5b540ff8abc5d8b06037009"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a4a5e4c75a5b540ff8abc5d8b06037009">getBatteryState</a> () const</td></tr>
<tr class="memdesc:a4a5e4c75a5b540ff8abc5d8b06037009"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get battery state.  <a href="#a4a5e4c75a5b540ff8abc5d8b06037009">More...</a><br /></td></tr>
<tr class="separator:a4a5e4c75a5b540ff8abc5d8b06037009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ead87d4562bd0bc579877d13950bb66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a3ead87d4562bd0bc579877d13950bb66">setBatteryState</a> (int percent)</td></tr>
<tr class="memdesc:a3ead87d4562bd0bc579877d13950bb66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set battery state.  <a href="#a3ead87d4562bd0bc579877d13950bb66">More...</a><br /></td></tr>
<tr class="separator:a3ead87d4562bd0bc579877d13950bb66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55c517a4ec88dae5f1e13aed2635ca95"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a55c517a4ec88dae5f1e13aed2635ca95">hasAlert</a> () const</td></tr>
<tr class="memdesc:a55c517a4ec88dae5f1e13aed2635ca95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has alerts.  <a href="#a55c517a4ec88dae5f1e13aed2635ca95">More...</a><br /></td></tr>
<tr class="separator:a55c517a4ec88dae5f1e13aed2635ca95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3ce6ea4f65adc0ba9b1217cfed72330"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehueplusplus.html#aeb1b8dcc03d48ce621a23ce3b2012c1a">Alert</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#af3ce6ea4f65adc0ba9b1217cfed72330">getLastAlert</a> () const</td></tr>
<tr class="memdesc:af3ce6ea4f65adc0ba9b1217cfed72330"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get last sent alert.  <a href="#af3ce6ea4f65adc0ba9b1217cfed72330">More...</a><br /></td></tr>
<tr class="separator:af3ce6ea4f65adc0ba9b1217cfed72330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aca27f51d9dfb19432a0ce53a84ea98"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a8aca27f51d9dfb19432a0ce53a84ea98">sendAlert</a> (<a class="el" href="namespacehueplusplus.html#aeb1b8dcc03d48ce621a23ce3b2012c1a">Alert</a> type)</td></tr>
<tr class="memdesc:a8aca27f51d9dfb19432a0ce53a84ea98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send alert.  <a href="#a8aca27f51d9dfb19432a0ce53a84ea98">More...</a><br /></td></tr>
<tr class="separator:a8aca27f51d9dfb19432a0ce53a84ea98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae91fa1d7f27331837eab26db67848513"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#ae91fa1d7f27331837eab26db67848513">hasReachable</a> () const</td></tr>
<tr class="memdesc:ae91fa1d7f27331837eab26db67848513"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has reachable validation.  <a href="#ae91fa1d7f27331837eab26db67848513">More...</a><br /></td></tr>
<tr class="separator:ae91fa1d7f27331837eab26db67848513"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9804092c78e462d42311e08d2d37fec4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a9804092c78e462d42311e08d2d37fec4">isReachable</a> () const</td></tr>
<tr class="memdesc:a9804092c78e462d42311e08d2d37fec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get whether sensor is reachable.  <a href="#a9804092c78e462d42311e08d2d37fec4">More...</a><br /></td></tr>
<tr class="separator:a9804092c78e462d42311e08d2d37fec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd9f4d2afc472766c7631b3f278dee7f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#abd9f4d2afc472766c7631b3f278dee7f">hasUserTest</a> () const</td></tr>
<tr class="memdesc:abd9f4d2afc472766c7631b3f278dee7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has a user test mode.  <a href="#abd9f4d2afc472766c7631b3f278dee7f">More...</a><br /></td></tr>
<tr class="separator:abd9f4d2afc472766c7631b3f278dee7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53fb1db7e3788c2a91ab357af49f332d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a53fb1db7e3788c2a91ab357af49f332d">setUserTest</a> (bool enabled)</td></tr>
<tr class="memdesc:a53fb1db7e3788c2a91ab357af49f332d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable or disable user test mode.  <a href="#a53fb1db7e3788c2a91ab357af49f332d">More...</a><br /></td></tr>
<tr class="separator:a53fb1db7e3788c2a91ab357af49f332d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac67547e74857fd66bd90b6f6712498db"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#ac67547e74857fd66bd90b6f6712498db">hasURL</a> () const</td></tr>
<tr class="memdesc:ac67547e74857fd66bd90b6f6712498db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has a URL.  <a href="#ac67547e74857fd66bd90b6f6712498db">More...</a><br /></td></tr>
<tr class="separator:ac67547e74857fd66bd90b6f6712498db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e8915051ba8a93956aff71dd7b427d4"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a0e8915051ba8a93956aff71dd7b427d4">getURL</a> () const</td></tr>
<tr class="memdesc:a0e8915051ba8a93956aff71dd7b427d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get sensor URL.  <a href="#a0e8915051ba8a93956aff71dd7b427d4">More...</a><br /></td></tr>
<tr class="separator:a0e8915051ba8a93956aff71dd7b427d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba37ff1e94e65de6e176e275637fe7f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#aba37ff1e94e65de6e176e275637fe7f8">setURL</a> (const std::string &amp;url)</td></tr>
<tr class="memdesc:aba37ff1e94e65de6e176e275637fe7f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set sensor URL.  <a href="#aba37ff1e94e65de6e176e275637fe7f8">More...</a><br /></td></tr>
<tr class="separator:aba37ff1e94e65de6e176e275637fe7f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8580976eb531df99f1d7a5b200503f8b"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a8580976eb531df99f1d7a5b200503f8b">getPendingConfig</a> () const</td></tr>
<tr class="memdesc:a8580976eb531df99f1d7a5b200503f8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get pending config entries, if they exist.  <a href="#a8580976eb531df99f1d7a5b200503f8b">More...</a><br /></td></tr>
<tr class="separator:a8580976eb531df99f1d7a5b200503f8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5e1844561ea1c98238dba3ff7d8387"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#abf5e1844561ea1c98238dba3ff7d8387">hasLEDIndication</a> () const</td></tr>
<tr class="memdesc:abf5e1844561ea1c98238dba3ff7d8387"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the sensor has an LED indicator.  <a href="#abf5e1844561ea1c98238dba3ff7d8387">More...</a><br /></td></tr>
<tr class="separator:abf5e1844561ea1c98238dba3ff7d8387"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62524f6ef72a95eb6b8f94355297ac1b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a62524f6ef72a95eb6b8f94355297ac1b">getLEDIndication</a> () const</td></tr>
<tr class="memdesc:a62524f6ef72a95eb6b8f94355297ac1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get whether the indicator LED is on.  <a href="#a62524f6ef72a95eb6b8f94355297ac1b">More...</a><br /></td></tr>
<tr class="separator:a62524f6ef72a95eb6b8f94355297ac1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfed39d4b1f2f2e17c65cff826aadd70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#adfed39d4b1f2f2e17c65cff826aadd70">setLEDIndication</a> (bool on)</td></tr>
<tr class="memdesc:adfed39d4b1f2f2e17c65cff826aadd70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn LED indicator on or off.  <a href="#adfed39d4b1f2f2e17c65cff826aadd70">More...</a><br /></td></tr>
<tr class="separator:adfed39d4b1f2f2e17c65cff826aadd70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91a849fbe0971ce5589f08d5b814a6b"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#aa91a849fbe0971ce5589f08d5b814a6b">getConfig</a> () const</td></tr>
<tr class="memdesc:aa91a849fbe0971ce5589f08d5b814a6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get entire config object.  <a href="#aa91a849fbe0971ce5589f08d5b814a6b">More...</a><br /></td></tr>
<tr class="separator:aa91a849fbe0971ce5589f08d5b814a6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f9b27c4f29b7827b0d0347a057739dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_sensor.html#a5f9b27c4f29b7827b0d0347a057739dc">setConfigAttribute</a> (const std::string &amp;key, const nlohmann::json &amp;value)</td></tr>
<tr class="memdesc:a5f9b27c4f29b7827b0d0347a057739dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set attribute in the sensor config.  <a href="#a5f9b27c4f29b7827b0d0347a057739dc">More...</a><br /></td></tr>
<tr class="separator:a5f9b27c4f29b7827b0d0347a057739dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classhueplusplus_1_1_base_device"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classhueplusplus_1_1_base_device')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classhueplusplus_1_1_base_device.html">hueplusplus::BaseDevice</a></td></tr>
<tr class="memitem:ab08c354ca3eef24240f98267df4ae01a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#ab08c354ca3eef24240f98267df4ae01a">~BaseDevice</a> ()=default</td></tr>
<tr class="memdesc:ab08c354ca3eef24240f98267df4ae01a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor.  <a href="classhueplusplus_1_1_base_device.html#ab08c354ca3eef24240f98267df4ae01a">More...</a><br /></td></tr>
<tr class="separator:ab08c354ca3eef24240f98267df4ae01a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21122992819e6155867c02578773d0cd inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a21122992819e6155867c02578773d0cd">getId</a> () const</td></tr>
<tr class="memdesc:a21122992819e6155867c02578773d0cd inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the id of this device.  <a href="classhueplusplus_1_1_base_device.html#a21122992819e6155867c02578773d0cd">More...</a><br /></td></tr>
<tr class="separator:a21122992819e6155867c02578773d0cd inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6741ba9ec72108ca0101d41c0b02c568 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a6741ba9ec72108ca0101d41c0b02c568">getType</a> () const</td></tr>
<tr class="memdesc:a6741ba9ec72108ca0101d41c0b02c568 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the device type.  <a href="classhueplusplus_1_1_base_device.html#a6741ba9ec72108ca0101d41c0b02c568">More...</a><br /></td></tr>
<tr class="separator:a6741ba9ec72108ca0101d41c0b02c568 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5331ce38f4e6c9def7bafc23112ccd34 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a5331ce38f4e6c9def7bafc23112ccd34">getName</a> ()</td></tr>
<tr class="memdesc:a5331ce38f4e6c9def7bafc23112ccd34 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that returns the name of the device.  <a href="classhueplusplus_1_1_base_device.html#a5331ce38f4e6c9def7bafc23112ccd34">More...</a><br /></td></tr>
<tr class="separator:a5331ce38f4e6c9def7bafc23112ccd34 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a095f4467a072fee3091402e7ed31a6fe inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a095f4467a072fee3091402e7ed31a6fe">getName</a> () const</td></tr>
<tr class="memdesc:a095f4467a072fee3091402e7ed31a6fe inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the name of the device.  <a href="classhueplusplus_1_1_base_device.html#a095f4467a072fee3091402e7ed31a6fe">More...</a><br /></td></tr>
<tr class="separator:a095f4467a072fee3091402e7ed31a6fe inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7572be90ab966033ad8b9c7e83598ce inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#aa7572be90ab966033ad8b9c7e83598ce">getModelId</a> () const</td></tr>
<tr class="memdesc:aa7572be90ab966033ad8b9c7e83598ce inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the modelid of the device.  <a href="classhueplusplus_1_1_base_device.html#aa7572be90ab966033ad8b9c7e83598ce">More...</a><br /></td></tr>
<tr class="separator:aa7572be90ab966033ad8b9c7e83598ce inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a821dc52df6472b2604f56579dac4ac04 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a821dc52df6472b2604f56579dac4ac04">getUId</a> () const</td></tr>
<tr class="memdesc:a821dc52df6472b2604f56579dac4ac04 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the uniqueid of the device.  <a href="classhueplusplus_1_1_base_device.html#a821dc52df6472b2604f56579dac4ac04">More...</a><br /></td></tr>
<tr class="separator:a821dc52df6472b2604f56579dac4ac04 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6e1af663e4f14afc6293aacdd5130c0 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#ad6e1af663e4f14afc6293aacdd5130c0">getManufacturername</a> () const</td></tr>
<tr class="memdesc:ad6e1af663e4f14afc6293aacdd5130c0 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the manufacturername of the device.  <a href="classhueplusplus_1_1_base_device.html#ad6e1af663e4f14afc6293aacdd5130c0">More...</a><br /></td></tr>
<tr class="separator:ad6e1af663e4f14afc6293aacdd5130c0 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f675db31058c574fbf55baea8bd556 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a53f675db31058c574fbf55baea8bd556">getProductname</a> () const</td></tr>
<tr class="memdesc:a53f675db31058c574fbf55baea8bd556 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the productname of the device.  <a href="classhueplusplus_1_1_base_device.html#a53f675db31058c574fbf55baea8bd556">More...</a><br /></td></tr>
<tr class="separator:a53f675db31058c574fbf55baea8bd556 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebc5484b45b833491385a5381e3234bb inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#aebc5484b45b833491385a5381e3234bb">getSwVersion</a> ()</td></tr>
<tr class="memdesc:aebc5484b45b833491385a5381e3234bb inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that returns the software version of the device.  <a href="classhueplusplus_1_1_base_device.html#aebc5484b45b833491385a5381e3234bb">More...</a><br /></td></tr>
<tr class="separator:aebc5484b45b833491385a5381e3234bb inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a136cdba60a6781c15c6869ddcc7f2e1a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a136cdba60a6781c15c6869ddcc7f2e1a">getSwVersion</a> () const</td></tr>
<tr class="memdesc:a136cdba60a6781c15c6869ddcc7f2e1a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const function that returns the software version of the device.  <a href="classhueplusplus_1_1_base_device.html#a136cdba60a6781c15c6869ddcc7f2e1a">More...</a><br /></td></tr>
<tr class="separator:a136cdba60a6781c15c6869ddcc7f2e1a inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7554114eee573ab784c44d53f439028 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#ab7554114eee573ab784c44d53f439028">setName</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:ab7554114eee573ab784c44d53f439028 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that sets the name of the device.  <a href="classhueplusplus_1_1_base_device.html#ab7554114eee573ab784c44d53f439028">More...</a><br /></td></tr>
<tr class="separator:ab7554114eee573ab784c44d53f439028 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6ac28ae3879a41ace1cd6806ca9a2f1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#aa6ac28ae3879a41ace1cd6806ca9a2f1">refresh</a> (bool force=false)</td></tr>
<tr class="memdesc:aa6ac28ae3879a41ace1cd6806ca9a2f1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Refreshes internal cached state.  <a href="classhueplusplus_1_1_base_device.html#aa6ac28ae3879a41ace1cd6806ca9a2f1">More...</a><br /></td></tr>
<tr class="separator:aa6ac28ae3879a41ace1cd6806ca9a2f1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dd630da2c99842700d555788c0b75b1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a5dd630da2c99842700d555788c0b75b1">setRefreshDuration</a> (std::chrono::steady_clock::duration refreshDuration)</td></tr>
<tr class="memdesc:a5dd630da2c99842700d555788c0b75b1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets custom refresh interval for this device.  <a href="classhueplusplus_1_1_base_device.html#a5dd630da2c99842700d555788c0b75b1">More...</a><br /></td></tr>
<tr class="separator:a5dd630da2c99842700d555788c0b75b1 inherit pub_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classhueplusplus_1_1_base_device"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classhueplusplus_1_1_base_device')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classhueplusplus_1_1_base_device.html">hueplusplus::BaseDevice</a></td></tr>
<tr class="memitem:a48bf88e758fd7191c599a46751755c97 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a48bf88e758fd7191c599a46751755c97">BaseDevice</a> (int <a class="el" href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">id</a>, const std::shared_ptr&lt; <a class="el" href="classhueplusplus_1_1_a_p_i_cache.html">APICache</a> &gt; &amp;baseCache)</td></tr>
<tr class="memdesc:a48bf88e758fd7191c599a46751755c97 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protected ctor that is used by subclasses, construct with shared cache.  <a href="classhueplusplus_1_1_base_device.html#a48bf88e758fd7191c599a46751755c97">More...</a><br /></td></tr>
<tr class="separator:a48bf88e758fd7191c599a46751755c97 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa90386c0cea99464dee6bedb2c68254 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#aaa90386c0cea99464dee6bedb2c68254">BaseDevice</a> (int <a class="el" href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">id</a>, const <a class="el" href="classhueplusplus_1_1_hue_command_a_p_i.html">HueCommandAPI</a> &amp;commands, const std::string &amp;path, std::chrono::steady_clock::duration refreshDuration, const nlohmann::json &amp;currentState)</td></tr>
<tr class="memdesc:aaa90386c0cea99464dee6bedb2c68254 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protected ctor that is used by subclasses.  <a href="classhueplusplus_1_1_base_device.html#aaa90386c0cea99464dee6bedb2c68254">More...</a><br /></td></tr>
<tr class="separator:aaa90386c0cea99464dee6bedb2c68254 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8089e8f00d426427ed2fc7f6b817082 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">virtual nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#ac8089e8f00d426427ed2fc7f6b817082">sendPutRequest</a> (const std::string &amp;subPath, const nlohmann::json &amp;request, <a class="el" href="structhueplusplus_1_1_file_info.html">FileInfo</a> fileInfo)</td></tr>
<tr class="memdesc:ac8089e8f00d426427ed2fc7f6b817082 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">Utility function to send a put request to the device.  <a href="classhueplusplus_1_1_base_device.html#ac8089e8f00d426427ed2fc7f6b817082">More...</a><br /></td></tr>
<tr class="separator:ac8089e8f00d426427ed2fc7f6b817082 inherit pro_methods_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classhueplusplus_1_1_base_device"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classhueplusplus_1_1_base_device')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classhueplusplus_1_1_base_device.html">hueplusplus::BaseDevice</a></td></tr>
<tr class="memitem:aa65a31223cfa2a054c28148c35c8b3cf inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">id</a></td></tr>
<tr class="memdesc:aa65a31223cfa2a054c28148c35c8b3cf inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">holds the id of the device  <a href="classhueplusplus_1_1_base_device.html#aa65a31223cfa2a054c28148c35c8b3cf">More...</a><br /></td></tr>
<tr class="separator:aa65a31223cfa2a054c28148c35c8b3cf inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526b63fa6eb1c9dc9a7b1926ad0be27a inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhueplusplus_1_1_a_p_i_cache.html">APICache</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_base_device.html#a526b63fa6eb1c9dc9a7b1926ad0be27a">state</a></td></tr>
<tr class="memdesc:a526b63fa6eb1c9dc9a7b1926ad0be27a inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="mdescLeft">&#160;</td><td class="mdescRight">holds the current state of the device  <a href="classhueplusplus_1_1_base_device.html#a526b63fa6eb1c9dc9a7b1926ad0be27a">More...</a><br /></td></tr>
<tr class="separator:a526b63fa6eb1c9dc9a7b1926ad0be27a inherit pro_attribs_classhueplusplus_1_1_base_device"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for generic or unknown sensor types. </p>
<p>It is recommended to instead use the classes for specific types in <a class="el" href="sensors.html">Sensors</a>. This class should only be used if the type cannot be known or is not supported. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a84233dc1a8456935c0173acf3712d522"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84233dc1a8456935c0173acf3712d522">&#9670;&nbsp;</a></span>Sensor() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">hueplusplus::Sensor::Sensor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::shared_ptr&lt; <a class="el" href="classhueplusplus_1_1_a_p_i_cache.html">APICache</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>baseCache</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct <a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a> with shared cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>Integer that specifies the id of this sensor </td></tr>
    <tr><td class="paramname">baseCache</td><td>Cache of the <a class="el" href="classhueplusplus_1_1_sensor_list.html" title="Handles a list of Sensors with type specific getters. ">SensorList</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5b7676f01394623c55837112c4d43f67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b7676f01394623c55837112c4d43f67">&#9670;&nbsp;</a></span>Sensor() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">hueplusplus::Sensor::Sensor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhueplusplus_1_1_hue_command_a_p_i.html">HueCommandAPI</a> &amp;&#160;</td>
          <td class="paramname"><em>commands</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::chrono::steady_clock::duration&#160;</td>
          <td class="paramname"><em>refreshDuration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const nlohmann::json &amp;&#160;</td>
          <td class="paramname"><em>currentState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct <a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>Integer that specifies the id of this sensor </td></tr>
    <tr><td class="paramname">commands</td><td><a class="el" href="classhueplusplus_1_1_hue_command_a_p_i.html">HueCommandAPI</a> for communication with the bridge </td></tr>
    <tr><td class="paramname">refreshDuration</td><td>Time between refreshing the cached state. </td></tr>
    <tr><td class="paramname">currentState</td><td>The current state, may be null. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3dd55641f02c9a59f69dd37b87f9d621"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dd55641f02c9a59f69dd37b87f9d621">&#9670;&nbsp;</a></span>asSensorType() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T hueplusplus::Sensor::asSensorType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const &amp;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert sensor to a specific type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td><a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a> type to convert to (from <a class="el" href="sensors.html">Sensors</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when sensor type does not match requested type </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2aaa1a662822dfb1fc6e70b03c565b56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aaa1a662822dfb1fc6e70b03c565b56">&#9670;&nbsp;</a></span>asSensorType() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T hueplusplus::Sensor::asSensorType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> &amp;&amp;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert sensor to a specific type. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td><a class="el" href="classhueplusplus_1_1_sensor.html" title="Class for generic or unknown sensor types. ">Sensor</a> type to convert to (from <a class="el" href="sensors.html">Sensors</a>) </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when sensor type does not match requested type</td></tr>
  </table>
  </dd>
</dl>
<p>Move construct <code>T</code> to be more efficient when the type is wanted directly. </p>

</div>
</div>
<a id="a4a5e4c75a5b540ff8abc5d8b06037009"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a5e4c75a5b540ff8abc5d8b06037009">&#9670;&nbsp;</a></span>getBatteryState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hueplusplus::Sensor::getBatteryState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get battery state. </p>
<dl class="section return"><dt>Returns</dt><dd>Battery state in percent </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">nlohmann::json::out_of_range</td><td>when sensor has no battery status. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa91a849fbe0971ce5589f08d5b814a6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91a849fbe0971ce5589f08d5b814a6b">&#9670;&nbsp;</a></span>getConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nlohmann::json hueplusplus::Sensor::getConfig </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get entire config object. </p>
<dl class="section return"><dt>Returns</dt><dd>A json object with the sensor configuration. </dd></dl>

</div>
</div>
<a id="af3ce6ea4f65adc0ba9b1217cfed72330"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3ce6ea4f65adc0ba9b1217cfed72330">&#9670;&nbsp;</a></span>getLastAlert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehueplusplus.html#aeb1b8dcc03d48ce621a23ce3b2012c1a">Alert</a> hueplusplus::Sensor::getLastAlert </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get last sent alert. </p>
<dl class="section note"><dt>Note</dt><dd>This is not cleared when the alert ends. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">nlohmann::json::out_of_range</td><td>when sensor has no alert. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8fe3726ee3ac9cb9bf65e9865c6c4697"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fe3726ee3ac9cb9bf65e9865c6c4697">&#9670;&nbsp;</a></span>getLastUpdated()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhueplusplus_1_1time_1_1_absolute_time.html">time::AbsoluteTime</a> hueplusplus::Sensor::getLastUpdated </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get time of last status update. </p>
<dl class="section return"><dt>Returns</dt><dd>The last update time, or a time with a zero duration from epoch if the last update time is not set. </dd></dl>

</div>
</div>
<a id="a62524f6ef72a95eb6b8f94355297ac1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62524f6ef72a95eb6b8f94355297ac1b">&#9670;&nbsp;</a></span>getLEDIndication()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::getLEDIndication </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get whether the indicator LED is on. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">nlohmann::json::out_of_range</td><td>when sensor has no LED </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8580976eb531df99f1d7a5b200503f8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8580976eb531df99f1d7a5b200503f8b">&#9670;&nbsp;</a></span>getPendingConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; hueplusplus::Sensor::getPendingConfig </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get pending config entries, if they exist. </p>
<dl class="section return"><dt>Returns</dt><dd>The keys of config entries which have been modified, but were not committed to the device.</dd></dl>
<p>Attempts to set pending config entries may cause errors. </p>

</div>
</div>
<a id="ab44dee9934103797382b7cfcc24929d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab44dee9934103797382b7cfcc24929d5">&#9670;&nbsp;</a></span>getState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nlohmann::json hueplusplus::Sensor::getState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get state object. </p>

</div>
</div>
<a id="a28bcad902b4cb179d76a9420ad1dd06c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28bcad902b4cb179d76a9420ad1dd06c">&#9670;&nbsp;</a></span>getStateAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string hueplusplus::Sensor::getStateAddress </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get address of the given state attribute, used for conditions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Key in the state object </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>key</code> prefixed with the path to the sensor state </dd></dl>

</div>
</div>
<a id="a0e8915051ba8a93956aff71dd7b427d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e8915051ba8a93956aff71dd7b427d4">&#9670;&nbsp;</a></span>getURL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string hueplusplus::Sensor::getURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get sensor URL. </p>
<p>Only CLIP sensors can have a URL. </p>

</div>
</div>
<a id="a55c517a4ec88dae5f1e13aed2635ca95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55c517a4ec88dae5f1e13aed2635ca95">&#9670;&nbsp;</a></span>hasAlert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasAlert </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has alerts. </p>

</div>
</div>
<a id="aaa563dc71f6e2606d63917a77dd46d62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa563dc71f6e2606d63917a77dd46d62">&#9670;&nbsp;</a></span>hasBatteryState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasBatteryState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has a battery state. </p>

</div>
</div>
<a id="abf5e1844561ea1c98238dba3ff7d8387"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf5e1844561ea1c98238dba3ff7d8387">&#9670;&nbsp;</a></span>hasLEDIndication()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasLEDIndication </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has an LED indicator. </p>

</div>
</div>
<a id="a5853efc3712fe6c9e398c5a5b77c4f25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5853efc3712fe6c9e398c5a5b77c4f25">&#9670;&nbsp;</a></span>hasOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasOn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has an on attribute. </p>

</div>
</div>
<a id="ae91fa1d7f27331837eab26db67848513"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae91fa1d7f27331837eab26db67848513">&#9670;&nbsp;</a></span>hasReachable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasReachable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has reachable validation. </p>

</div>
</div>
<a id="ac67547e74857fd66bd90b6f6712498db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac67547e74857fd66bd90b6f6712498db">&#9670;&nbsp;</a></span>hasURL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasURL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has a URL. </p>

</div>
</div>
<a id="abd9f4d2afc472766c7631b3f278dee7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd9f4d2afc472766c7631b3f278dee7f">&#9670;&nbsp;</a></span>hasUserTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::hasUserTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check whether the sensor has a user test mode. </p>

</div>
</div>
<a id="a6eca69fe2a532c66d320ef959f595a9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6eca69fe2a532c66d320ef959f595a9a">&#9670;&nbsp;</a></span>isCertified()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::isCertified </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the sensor is Hue certified. </p>

</div>
</div>
<a id="a4b29e3f514c6af3c219f399c3dac1d42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b29e3f514c6af3c219f399c3dac1d42">&#9670;&nbsp;</a></span>isOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::isOn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>check whether the sensor is turned on </p>
<p>Sensors which are off do not change their status </p><dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">nlohmann::json::out_of_range</td><td>when on attribute does not exist. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa91632185b2cf84ac00f67da8e3548d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91632185b2cf84ac00f67da8e3548d4">&#9670;&nbsp;</a></span>isPrimary()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::isPrimary </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the sensor is primary sensor of the device. </p>
<p>When there are multiple sensors on one physical device (same MAC address), the primary device is used for the device information. </p>

</div>
</div>
<a id="a9804092c78e462d42311e08d2d37fec4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9804092c78e462d42311e08d2d37fec4">&#9670;&nbsp;</a></span>isReachable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool hueplusplus::Sensor::isReachable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get whether sensor is reachable. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">nlohmann::json::out_of_range</td><td>when sensor has no reachable validation </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8aca27f51d9dfb19432a0ce53a84ea98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aca27f51d9dfb19432a0ce53a84ea98">&#9670;&nbsp;</a></span>sendAlert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::sendAlert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehueplusplus.html#aeb1b8dcc03d48ce621a23ce3b2012c1a">Alert</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send alert. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3ead87d4562bd0bc579877d13950bb66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ead87d4562bd0bc579877d13950bb66">&#9670;&nbsp;</a></span>setBatteryState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setBatteryState </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>percent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set battery state. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5f9b27c4f29b7827b0d0347a057739dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f9b27c4f29b7827b0d0347a057739dc">&#9670;&nbsp;</a></span>setConfigAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setConfigAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const nlohmann::json &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set attribute in the sensor config. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Key of the config attribute </td></tr>
    <tr><td class="paramname">value</td><td>Any value to set the attribute to</td></tr>
  </table>
  </dd>
</dl>
<p>Can be used to configure sensors with additional config entries. </p>

</div>
</div>
<a id="adfed39d4b1f2f2e17c65cff826aadd70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfed39d4b1f2f2e17c65cff826aadd70">&#9670;&nbsp;</a></span>setLEDIndication()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setLEDIndication </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Turn LED indicator on or off. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa42407ca9a4ecb0d1f5854f93dc42f71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa42407ca9a4ecb0d1f5854f93dc42f71">&#9670;&nbsp;</a></span>setOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setOn </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Turn sensor on or off. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab864b9a83a9a47e2f1a277dc021c26f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab864b9a83a9a47e2f1a277dc021c26f3">&#9670;&nbsp;</a></span>setStateAttribute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setStateAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const nlohmann::json &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set part of the sensor state. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>Key in the state object </td></tr>
    <tr><td class="paramname">value</td><td>New value</td></tr>
  </table>
  </dd>
</dl>
<p>The state can usually only be set on CLIP sensors, not on physical devices. </p>

</div>
</div>
<a id="aba37ff1e94e65de6e176e275637fe7f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba37ff1e94e65de6e176e275637fe7f8">&#9670;&nbsp;</a></span>setURL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setURL </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set sensor URL. </p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a53fb1db7e3788c2a91ab357af49f332d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53fb1db7e3788c2a91ab357af49f332d">&#9670;&nbsp;</a></span>setUserTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hueplusplus::Sensor::setUserTest </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable or disable user test mode. </p>
<p>In user test mode, changes are reported more frequently.# It remains on for 120 seconds or until turned off. </p><dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::system_error</td><td>when system or socket operations fail </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_exception.html" title="Exception class with file information. Base class of all custom exception classes. ">HueException</a></td><td>when response contained no body </td></tr>
    <tr><td class="paramname"><a class="el" href="classhueplusplus_1_1_hue_a_p_i_response_exception.html" title="Exception caused by a Hue API &quot;error&quot; response with additional information. ">HueAPIResponseException</a></td><td>when response contains an error </td></tr>
    <tr><td class="paramname">nlohmann::json::parse_error</td><td>when response could not be parsed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/hueplusplus/<a class="el" href="_sensor_8h_source.html">Sensor.h</a></li>
<li>src/<a class="el" href="_sensor_8cpp.html">Sensor.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>