From a85cee5f8d24e7af0787992c4a4e7ae54f4c9652 Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 11 Mar 2024 14:24:43 -0700 Subject: [PATCH] Add bytes --- src/milquetoast/client.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/milquetoast/client.clj b/src/milquetoast/client.clj index 3e46683..e4084c7 100644 --- a/src/milquetoast/client.clj +++ b/src/milquetoast/client.clj @@ -51,7 +51,8 @@ :qos (.getQos mqtt-msg) :retained (.isRetained mqtt-msg) :duplicate (.isDuplicate mqtt-msg) - :payload (.toString mqtt-msg)}) + :payload (.toString mqtt-msg) + :payload-bytes (.getPayload mqtt-msg)}) (defprotocol IMilquetoastClient (send-message! [_ topic msg opts])