"use strict";var ptp=require("../.."),onConnected;onConnected=function(){console.log("Capturing..."),ptp.capture({storageId:0,objectFormatCode:0,onSuccess:function(){console.log("Finished"),ptp.disconnect()},onFailure:function(){console.error("Failed"),ptp.disconnect()}})},module.exports=function(e){require("./connect")({host:e,onConnected:onConnected})};