hubsif / arduino-dali

A timer-based DALI (Digital Addressable Lighting Interface) library for Arduino
https://hubsif.github.io/arduino-dali/
GNU General Public License v3.0
26 stars 19 forks source link

broadcast address #4

Closed marcobrianza closed 1 year ago

marcobrianza commented 1 year ago

hello, how do you send a message to broadcast?

hubsif commented 1 year ago

Hi @marcobrianza,

Since a broadcast is the same as sending a command to group address 63 (all bits high), you can do as follows:

Dali.sendCmdWait(63, <command>, Dali.DALI_GROUP_ADDRESS);     

(Also see code at DALI-MQTT project as sample.)

Perhaps having a shortcut function for this wouldn't hurt...