define(["log","ptp.js/ptp"],function(e,t){"use strict";var n;n=function(){e.append("Getting battery level…"),t.getDeviceProperty({code:t.devicePropCodes.batteryLevel,onSuccess:function(t){e.append("Got battery level (hex): "+t.dataPacket.toString())},onFailure:function(){e.appendError("Getting battery level failed")}})},document.querySelector("section.get-device-property button").onclick=n});