Building-Environment Control With Wireless Sensor and Actuator Networks: Centralized Versus Distributed | Synapse