diff --git a/ptpip.py b/ptpip.py index 9f7a6a2..e81dfc7 100644 --- a/ptpip.py +++ b/ptpip.py @@ -2,6 +2,7 @@ PTP/IP class for MicroPython @author Markus Birth +PTP/IP abstract: http://www.cipa.jp/ptp-ip/index_e.html PTP packet structure: http://www.gphoto.org/doc/ptpip.php and https://github.com/gphoto/libgphoto2/blob/master/camlibs/ptp2/PTPIP.TXT PTP example implementation in JavaScript: https://github.com/feklee/ptp.js @@ -74,11 +75,23 @@ class PTPIP: elif result[0] != 2: print("Unknown package type: %i" % result[0]) return False - session_id = struct.unpack('