Add cross-platform docker images for armv7 and arm64
[RRG-proxmark3.git] / client / experimental_client_with_swig / testembedded.lua
blob4857a53727dd1590fa1c291c99bfb1a6bfb6e01e
1 local pm3 = require("pm3")
2 p=pm3.pm3()
4 p:console("hw status")
5 p:console("hw version")
6 for line in p.grabbed_output:gmatch("[^\r\n]+") do
7 if line:find("Unique ID") or line:find("uC:") then
8 print(line)
9 end
10 end
12 print("Device:", p.name)
13 p:console("Rem passthru remark! :coffee:", false, false)
15 local json = require("dkjson")
16 print("Fetching prefs:")
17 p:console("prefs show --json")
18 local prefs, err = json.decode(p.grabbed_output)
19 if not prefs then
20 print("Error decoding JSON: ", err)
21 else
22 print("Save path: ", prefs['file.default.savepath'])
23 print("Dump path: ", prefs['file.default.dumppath'])
24 print("Trace path:", prefs['file.default.tracepath'])
25 end