Skip to content

Commit 3809615

Browse files
committed
Mentioned the packet-creator in the readme file
1 parent cbfe480 commit 3809615

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ underlying details).
102102
* fadeTime says how quickly the bulbs should move to the given state, and seem
103103
to roughly be in milliseconds. Use 0 for an immediate change.
104104

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.
109110

110111
If you want to see debug messages (including network traffic) then call
111112

0 commit comments

Comments
 (0)