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

Callback behavior for handling SMP IO requests

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

Types

status()

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

Type of status event

Callbacks

keyfile()

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

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

passkey(data)

@callback passkey(data :: binary()) :: any()

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

status_update(status)

@callback status_update(status :: status()) :: any()

Progress callback used to handle errors or successful pairing