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
- successfalse
- 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
- successfalse
- fail