"use strict";var ptp=require("../.."),util=require("./util"),onConnected;onConnected=function(propCode,value){var code,data,ptp=require("../../node_main");code=eval(propCode),data=eval("ptp.dataFactory."+value),console.log("Setting "+util.prettyPrintDeviceProperty(code)+" to "+data.toString()+"..."),ptp.setDeviceProperty({code:code,data:data,onSuccess:function(){console.log("Set"),ptp.disconnect()},onFailure:function(){console.error("Failed"),ptp.disconnect()}})},module.exports=function(e,t,n){require("./connect")({host:e,onConnected:onConnected.bind(this,t,n)})};