Testing a sensor and a controller

Finding a sensor is not the same as knowing it works. Before it starts watching, Bhairava Sense confirms that each controller and sensor really responds.

Bhairava Sense asks the controller for a sensor reading and checks that an answer comes backBhairavaSenseControllerSensorasksreplyAnswers, reading looks right
A test asks, waits for the reply, and checks that it makes sense.

Testing a controller

A controller test answers one question: does the controller reply when asked? If it does, it is switched on, reachable on the network and ready to be asked about its sensors. If it does not, nothing connected to it can be confirmed either.

Testing a sensor

A sensor test goes a step further. Bhairava Sense asks the controller for the sensor's current reading and looks at what comes back. Two things matter:

Why test before watching

A sensor that was wired up in a hurry, or that was named wrongly, can look perfectly normal in a list. Testing now means the green you see later is a green you can trust.

If a test does not pass

Testing only asks and reads. Nothing on the equipment is changed by a test.