mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
SWIG experiments: introduce context
This commit is contained in:
parent
a503dfcd98
commit
1562b75fc9
11 changed files with 435 additions and 88 deletions
|
@ -1,4 +1,6 @@
|
|||
local pm3 = require("pm3")
|
||||
p=pm3.open("/dev/ttyACM0")
|
||||
ctx=pm3.init()
|
||||
p=pm3.open(ctx, "/dev/ttyACM0")
|
||||
pm3.console(p, "hw status")
|
||||
pm3.close(p)
|
||||
pm3.exit(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue