IRNAS / ppk2-api-python

Power Profiling Kit 2 unofficial python api.
http://irnas.eu
GNU General Public License v2.0
145 stars 37 forks source link

list_devices: prints serial when discovering ppk2 #43

Closed wlgrd closed 1 month ago

wlgrd commented 4 months ago

This commit adds an extra field to the return from list_devices with the serial number of the discovered device. Added printing of the serial in the examples, as requested in https://github.com/IRNAS/ppk2-api-python/issues/41.

Output from example.py

> py example.py
Found PPK2 at /dev/ttyACM0 with serial number C10A56B6
Average of 512 samples is: -1.3063051170568183uA
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
(...)
wlgrd commented 4 months ago

Converting to draft as it is not fixed for windows yet