Next: The Result: A Symphony of Data, Previous: The Living Service: first-service-v3.c, Up: The Grand Finale: Bridging Code and Logic [Contents]
With the service broadcasting and listening, we just need the "brain" to make a decision. Open your rules file (see rules.conf.example) and drop this in:
myFirstOutput {
SET 1 WHEN myFirstInput > 50;
SET 0 WHEN TRUE;
}