BlueHeron.SMP.IOHandler behaviour (blue_heron v0.4.1) View Source

Callback behavior for handling SMP IO requests

Link to this section Summary

Types

Type of status event

Callbacks

returns the path to a file on the filesystem used to store encryption keys

Should be used to display or otherwise print the passkey used for MITM mitigation

Progress callback used to handle errors or successful pairing

Link to this section Types

Specs

status() :: :success | :passkey_mismatch | :fail

Type of status event

Link to this section Callbacks

Specs

keyfile() :: {:ok, Path.t()} | {:error, any()}

returns the path to a file on the filesystem used to store encryption keys

Specs

passkey(data :: binary()) :: any()

Should be used to display or otherwise print the passkey used for MITM mitigation

Specs

status_update(status :: status()) :: any()

Progress callback used to handle errors or successful pairing