Previous: The Rule: Closing the Loop, Up: The Grand Finale: Bridging Code and Logic [Contents]
Here is what happens when you hit "Run":
Your service shouts its existence over mDNS; the Core hears it and hooks up via D-Bus.
Your code starts counting. Every second, the Core receives the updated myFirstInput.
The moment that counter hits 51, the Core’s rule evaluates to TRUE.
The Core calls SetOutput on your service. Your on_output_changed function fires, and you see the confirmation in your console.
Congratulations You’ve just built a fully distributed, reactive automation loop. You’ve bridged the gap between raw C code and high-level abstract logic. This is no longer just a "beep example"—it’s the blueprint for an entire ecosystem.