blob: 33a08933f60d42921674db4a9986b0bf31c2bf2b (
plain)
Mussel Beacon Voting
-
Scans bluetooth network for beacons.
-
Collects mussel name and gape angle
as decoded from each detected beacon,
together with the time of detection in milliseconds since boot.
-
Aligns the collected data
to the format of ballots for a water quality vote.
-
Qualifies the ballots for criteria of the water quality vote
(e.g. timeliness and sanity of gape angles).
-
Concludes a vote based on collected, aligned and qualified ballots.
-
Acts on the voting result,
e.g. turns on a steady light for "code green"
or a blinking light for "code yellow",
or turns on a blinking light and shuts off a valve for "code red".
|