Commit 3809615 1 parent cbfe480 commit 3809615 Copy full SHA for 3809615
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ underlying details).
102
102
* fadeTime says how quickly the bulbs should move to the given state, and seem
103
103
to roughly be in milliseconds. Use 0 for an immediate change.
104
104
105
- You can also send a raw command to all bulbs using ``` lx.sendToAll(buffer) ```
106
- which will get the packet preamble prepended. Similarly, to send a raw command
107
- to an individual bulb, use ``` lx.sendToOne(buffer, bulb) ``` passing in a bulb
108
- object from the lx.bulbs array.
105
+ The "packet.js" module constructs each raw packet type, which can be sent to all
106
+ bulbs using something like ``` lx.sendToAll(packet.getLightState()) ``` .
107
+ Similarly, to send a raw command to an individual bulb, use
108
+ ``` lx.sendToOne(packet.getLightState(), bulb) ``` passing in a bulb object from
109
+ the lx.bulbs array.
109
110
110
111
If you want to see debug messages (including network traffic) then call
111
112
You can’t perform that action at this time.
0 commit comments