def init(cbpi): print "INITIALIZE SENSOR MODULE" SensorView.register(cbpi.app, route_base='/api/sensor') SensorView.init_cache() cbpi.init_sensors()
def init(cbpi): SensorView.register(cbpi.app, route_base='/api/sensor') SensorView.init_cache() cbpi.init_sensors()
def RestartSensors(): global num_users num_users = num_users + 1 if num_users == 1: cbpi.init_sensors()