Skip to main content

Module wiring

Module wiring 

Source
Expand description

A wiring file: which part reads what a profile reads, which line its output drives, and which link its readings go over, for one site.

A profile is portable: it says what to measure and how to decide, and the same file runs a brooder in one village and another. A wiring file is the rest, and it belongs to one installation: the part on this board’s bus, the relay on this board’s header, the broker on this farm’s network. pamoja-node reads the two and runs the node, with no program to write.

Structs§

BatteryWiring
The battery the node runs from, read as a voltage to set how often it samples.
Plan
How a profile’s reading is taken from a wired part: which of the part’s quantities, and how it is brought into the profile’s unit.
SensorWiring
The part that takes the readings, and where it is.
TlsWiring
A broker’s TLS settings, as a wiring file names them.
Wiring
One site’s wiring: the part, the output, the link, and the battery a profile runs with.

Enums§

LinkWiring
The link the readings are published over, as a wiring file names it.
OutputWiring
The output a profile drives, as a wiring file names it.
Part
A part the stock runner reads, as a wiring file names it.

Functions§

convert
Converts a reading between two units of the same quantity.