feat: Implement create-client and create-json-client functions in core.clj
This commit is contained in:
@@ -124,9 +124,11 @@
|
||||
(defn create-client
|
||||
[broker-uri username password & {:keys [verbose]
|
||||
:or {verbose false}}]
|
||||
...)
|
||||
(let [client (MqttClient. broker-uri username password (MemoryPersistence.))]
|
||||
(->MilquetoastClient client (atom []) verbose)))
|
||||
|
||||
(defn create-json-client
|
||||
[broker-uri username password & {:keys [verbose]
|
||||
:or {verbose false}}]
|
||||
...)
|
||||
(let [client (create-client broker-uri username password :verbose verbose)]
|
||||
(->MilquetoastJsonClient client)))
|
||||
|
||||
Reference in New Issue
Block a user