"use strict";var ptp=require("../.."),util=require("./util"),onConnected;onConnected=function(propCode){var code,ptp=require("../../node_main");code=eval(propCode),console.log("Getting "+util.prettyPrintDeviceProperty(code)+"..."),ptp.getDeviceProperty({code:code,onSuccess:function(e){console.log("Value (hex): "+e.dataPacket.toString()),ptp.disconnect()},onFailure:function(){console.error("Failed"),ptp.disconnect()}})},module.exports=function(e,t){require("./connect")({host:e,onConnected:onConnected.bind(this,t)})};