Skip to content

Compile to add Subscribe? and other questions #10300

Answered by barbudor
TinajaLabs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TinajaLabs

As said above, there are multiple ways to reach your goal

  1. Publishing directly from PIR to Leds on standard topic
    Your PIR module could publish directly to the LED module on a standard topic like Publish cmnd/topicled/POWER on
    You need Rules only on the PIR moduleOr eve use the command SwitchTopic to have the PIR module to natively publish to a given custom topic

  2. Publishing directly from PIR to leds on an EVENT
    Your PIR module could publish directly to the LED module on an evet topic like Publish cmnd/topicled/EVENT pirevent
    You also need Rules on the led module such as on Event#pirevent DO whateveryouwant endon

  3. Publishing and subscribing to a custom generic event
    Th…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ascillato2
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants