Skip to content

Commit

Permalink
updated example in Readme for receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Hundemeier committed Apr 7, 2024
1 parent 71ffddc commit d5268ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ receiver.start() # start the receiving thread
# define a callback function
@receiver.listen_on('universe', universe=1) # listens on universe 1
def callback(packet): # packet type: sacn.DataPacket
print(packet.dmxData) # print the received DMX data
if packet.dmxStartCode == 0x00: # ignore non-DMX-data packets
print(packet.dmxData) # print the received DMX data

# optional: if multicast is desired, join with the universe number as parameter
receiver.join_multicast(1)
Expand Down

0 comments on commit d5268ce

Please sign in to comment.