Skip to content

Instantly share code, notes, and snippets.

View fhunleth's full-sized avatar
🦖

Frank Hunleth fhunleth

🦖
View GitHub Profile
@amclain
amclain / emqtt.ex
Last active December 19, 2023 16:35
# Connect and subscribe
def init(_args) do
Logger.info "Starting emqtt..."
{:ok, pid} = :emqtt.start_link(
clientid: "emqtt",
host: 'localhost',
# clean_start: false,
)