Home | History | Annotate | Download | only in light

Lines Matching refs:device

7 #include <weave/device.h>
177 void Register(weave::Device* device) {
178 device_ = device;
180 device->AddTraitDefinitionsFromJson(kTraits);
181 CHECK(device->AddComponent(kComponent, {"onOff", "brightness", "colorXY"},
184 device->SetStatePropertiesFromJson(kComponent, kDefaultState, nullptr));
187 device->AddCommandHandler(kComponent, "onOff.setConfig",
190 device->AddCommandHandler(kComponent, "brightness.setConfig",
193 device->AddCommandHandler(kComponent, "colorXY.setConfig",
295 weave::Device* device_{nullptr};