예제 #1
0
def init(cbpi):
    print "INITIALIZE SENSOR MODULE"
    SensorView.register(cbpi.app, route_base='/api/sensor')
    SensorView.init_cache()
    cbpi.init_sensors()
예제 #2
0
def init(cbpi):

    SensorView.register(cbpi.app, route_base='/api/sensor')
    SensorView.init_cache()
    cbpi.init_sensors()
예제 #3
0
def RestartSensors():
    global num_users
    num_users = num_users + 1
    if num_users == 1:
        cbpi.init_sensors()