#include <Bridge.h>
◆ ConfigDelegate
Called when a new user key is created.
The application should use this to store new users in persistent memory. At startup, these should be passed back via the configure()
method.
◆ StateChangeDelegate
A global callback may be provided to perform actions when device states change.
- Parameters
-
device | The device which has been updated |
attr | A set of flags indicating which attributes were changed |
The callback is invoked only when all request actions have been completed. The current state may be quereied using device::getAttribute
.
◆ Bridge()
Constructor.
- Parameters
-
devices | List of devices to present |
◆ begin()
void Hue::Bridge::begin |
( |
| ) |
|
◆ configure()
void Hue::Bridge::configure |
( |
const Config & |
config | ) |
|
Perform a configuration action.
- Parameters
-
config | The action to perform |
◆ deviceStateChanged()
Devices call this method when their state has been updated.
- Note
- Applications should not call this method
◆ enablePairing()
void Hue::Bridge::enablePairing |
( |
bool |
enable | ) |
|
|
inline |
Enable creation of new users.
- Note
- DO NOT leave this permanently enabled!
This could be enabled via web page on local Access Point, or physical push-button. It should also be time limited, so exits pairing mode after maybe 30 seconds. If a user creation request is received then this is disabled automatically.
◆ formatMessage()
◆ getField()
String Hue::Bridge::getField |
( |
Field |
desc | ) |
const |
|
override |
◆ getStats()
const Stats& Hue::Bridge::getStats |
( |
| ) |
|
|
inline |
Get bridge statistics.
- Return values
-
◆ getStatusInfo()
void Hue::Bridge::getStatusInfo |
( |
JsonObject |
json | ) |
|
Get bridge status information in JSON format.
- Parameters
-
json | Where to write information |
◆ getUsers()
const UserMap& Hue::Bridge::getUsers |
( |
| ) |
const |
|
inline |
Access the list of users.
- Return values
-
◆ onConfigChange()
◆ onHttpRequest()
◆ onStateChanged()
◆ resetStats()
void Hue::Bridge::resetStats |
( |
| ) |
|
|
inline |
Clear the bridge statistics.
The documentation for this class was generated from the following file: