konsumer / tplink-lightbulb

Control TP-Link smart lightbulbs from nodejs
MIT License
191 stars 32 forks source link

Ability to change device names. #51

Closed migte closed 4 years ago

migte commented 4 years ago

Using this, you can now change the name of a device.

(I ended up using "newAlias" as the variable to help distinguish it from the "alias" right before)

Let me know if there is anything wrong. Thanks!

konsumer commented 4 years ago

thanks!

konsumer commented 4 years ago

Sidenote, I chose alias as name of var, so it could be use in the object. like { alias: alias } is the same as { alias }. I think it's fine either way, just a cool trick.