SWIG experiments: introduce context

This commit is contained in:
Philippe Teuwen committed 2020-06-14 21:35:23 +02:00
1 parent a503dfcd98
commit 1562b75fc9
11 files changed
+434 -87

No files matched your search

+3 -1
View File
@@ -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)