Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Suport to send topic messages for all devices on network #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pablolucas890
Copy link

When using the option multiple-lookup on the configuration file mqtt.conf, we have the hability to specify which broadlink to submit the message. But, if we want the old behaviour, we need to modify the configuration file everytime.

To avoid that, implement a broadcast address, which allows sending a command to all broadlinks on the network.

This allow a project to have device_type = multiple-lookup option, and send a command to a specific device, or just send to the broadcast address in case it doesn't know the address of the device (if there is only one device present) or if doesn't care to send the command to all devices on the network.

For the user to not need to write MAC Address or edit mqtt.conf if they have just one broadlink,They can send the MAC Broadcast on topic and all devices on network (sometimes the user has just one), will be activated.

If The user has more broadlinks, they just write broadlink MAC Address on topic. So they doesn't need to change mqtt.conf all times.

broadlink broadcast is "FF:FF:FF:FF:FF:FF" and in the topic it is "ff_ff_ff_ff_ff_ff".

When using the option multiple-lookup on the configuration file mqtt.conf, we have the hability to specify which broadlink to submit the message. But, if we want the old behaviour, we need to modify the configuration file everytime.

To avoid that, implement a broadcast address, which allows sending a command to all broadlinks on the network.

This allow a project to have `device_type = multiple-lookup` option, and send a command to a specific device, or just send to the broadcast
address in case it doesn't know the address of the device (if there is only one device present) or if doesn't care to send the command to all devices on the network.

For the user to not need to write MAC Address or edit mqtt.conf if they have just one broadlink,They can send the MAC Broadcast on topic and all devices on network (sometimes the user has just one), will be activated.

If The user has more broadlinks, they just write broadlink MAC Address on topic. So they doesn't need to change mqtt.conf all times.

broadlink broadcast is "FF:FF:FF:FF:FF:FF" and in the topic it is "ff_ff_ff_ff_ff_ff".
@helen-fornazier
Copy link

@eschava hey, this is very useful, would you mind reviewing this? what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants