Beispiel #1
0
 def __init__(self):
     device.gpio.register_handler(callback_dict.CallbackDict())
     current_app.config['NOCLIENT_MQ'](remote_obj.return_val_key()).clear()
     EventLoop.__init__(self, device.Device.RPI)        
Beispiel #2
0
def return_val():
    mq = current_app.config['NOCLIENT_MQ'](key = remote_obj.return_val_key())
    mq.push(request.data)
    return jsonify({'objects': {}})