Ejemplo n.º 1
0
 def sda_manager_device():
     logging.info("[" + request.method + "] sda manager device - IN")
     data = json.loads(request.data)
     if "id" in data:
         SDAManager.set_device_id(data["id"])
     if "ip" in data:
         SDAManager.set_device_ip(data["ip"])
     return "device", 200
        def sda_manager_device():
            logging.info("[" + request.method + "] sda manager device - IN")

            data = json.loads(request.data)
            SDAManager.set_device_id(data["id"])
            SDAManager.set_device_ip(data["host"])
            SDAManager.set_device_port(data["port"])

            return "device", 200