#include <Device.h>
◆ Attributes
◆ Callback
Callback invoked when setAttribute() has completed.
- Parameters
-
status | Result of the operation |
errorCode | Application-specific error code |
- Note
- Any status other than
success
is considered a failure
◆ ID
◆ Attribute
◆ ColorMode
◆ ~Device()
virtual Hue::Device::~Device |
( |
| ) |
|
|
inlinevirtual |
◆ getAttribute()
◆ getColorMode()
virtual ColorMode Hue::Device::getColorMode |
( |
| ) |
const |
|
inlinevirtual |
◆ getId()
virtual ID Hue::Device::getId |
( |
| ) |
const |
|
pure virtual |
◆ getInfo()
virtual void Hue::Device::getInfo |
( |
JsonObject |
json | ) |
|
|
virtual |
◆ getName()
virtual String Hue::Device::getName |
( |
| ) |
const |
|
pure virtual |
◆ getUniqueId()
virtual String Hue::Device::getUniqueId |
( |
| ) |
const |
|
virtual |
Returns the unique device ID string.
- Return values
-
String | Unique ID of the form AA:BB:CC:DD:EE:FF:00:11-XX, consisting of a 64-bit Zigbee MAC address plus unique endpoint ID. |
- Note
- Other forms of ID string may be used, however for maximum compatibility the standard format should be used. By default, this method uses the WiFi station MAC address, with 00:11 appended plus the 8-bit device ID.
◆ operator==() [1/3]
bool Hue::Device::operator== |
( |
const Device & |
dev | ) |
const |
|
inline |
Two devices are considered equal if they have the same ID.
◆ operator==() [2/3]
bool Hue::Device::operator== |
( |
const String & |
name | ) |
const |
|
inline |
◆ operator==() [3/3]
bool Hue::Device::operator== |
( |
ID |
id | ) |
const |
|
inline |
◆ setAttribute()
Set a device attribute.
- Parameters
-
attr | The attribute to change |
value | Value for the attribute (exact type is attribute-specific) |
callback | If you return Status::pending, invoke this callback when completed |
- Return values
-
- Note
- DO NOT invoke the callback directly: only use it if pended.
Implemented in Hue::OnOffDevice, Hue::ColourDevice, and Hue::DimmableDevice.
The documentation for this class was generated from the following file: