| Package | Description |
|---|---|
| de.sg_o.app.miio.yeelight |
| Modifier and Type | Method | Description |
|---|---|---|
Prop.Names[] |
Prop.getProps() |
|
static Prop.Names |
Prop.Names.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Prop.Names[] |
Prop.Names.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<Prop.Names,java.lang.String> |
Light.getProps(Prop.Names[] props) |
Get several property values at once from the device.
|
java.util.Map<Prop.Names,java.lang.String> |
Prop.parseResponse(org.json.JSONArray response) |
Parse the response from the device and return a map containing the property names and their values.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
Light.getIntProp(Prop.Names prop) |
Get a single property value and try to convert it to an int.
|
java.util.Map<Prop.Names,java.lang.String> |
Light.getProps(Prop.Names[] props) |
Get several property values at once from the device.
|
java.lang.String |
Light.getSingleProp(Prop.Names prop) |
Get a single property value from the device.
|
| Constructor | Description |
|---|---|
Prop(Prop.Names[] props) |
Create a new light properties object.
|
Copyright © 2018. All rights reserved.