Light Belt Control
Methods
openLightBelt(lightBelt) → {Promise.<boolean>}
Turn on the light strip
Parameters
| Name | Type | Description | 
|---|---|---|
| lightBelt | LightBelt | 
Return value Promise.<boolean>
whether succeed
- true- success
- false- fail
Example
| JavaScript | |
|---|---|
closeLightBelt(lightBelt) → {Promise.<boolean>}
Turn off the light strip
Parameters
| Name | Type | Description | 
|---|---|---|
| lightBelt | LightBelt | 
Return value Promise.<boolean>
whether succeed
- true- success
- false- fail