We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1641c8 commit 271690fCopy full SHA for 271690f
lib/nerves_key/config.ex
@@ -36,6 +36,16 @@ defmodule NervesKey.Config do
36
end
37
38
39
+ @doc """
40
+ Helper for getting information about the ATECC module.
41
+ """
42
+ @spec device_info(ATECC508A.Transport.t()) :: {:error, atom()} | {:ok, map()}
43
+ def device_info(transport) do
44
+ with {:ok, info} <- Configuration.read(transport) do
45
+ {:ok, Map.take(info, [:rev_num])}
46
+ end
47
48
+
49
@doc """
50
Helper for getting the ATECC508A's serial number.
51
"""
0 commit comments