From 5b29dc5921746762477d59c91987827d948c0323 Mon Sep 17 00:00:00 2001
From: Marin Karamihalev <marin.karamihalev@iopsys.eu>
Date: Tue, 28 Mar 2023 13:18:47 +0200
Subject: [PATCH] qjs clientId minor fix

---
 src/configurations/quickjs/async-mqtt.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/configurations/quickjs/async-mqtt.js b/src/configurations/quickjs/async-mqtt.js
index c2b3251..baf3bcd 100644
--- a/src/configurations/quickjs/async-mqtt.js
+++ b/src/configurations/quickjs/async-mqtt.js
@@ -30,9 +30,9 @@ class AsyncClient {
     port = 9001,
     user = "admin",
     password = "admin",
-    clientId
+    clientId = "qjs_client"
   ) {
-    this.client = new Paho.Client(host, port, "/mqtt", finalClientId);
+    this.client = new Paho.Client(host, port, "/mqtt", clientId);
     const opts = {
       userName: user,
       password: password,
-- 
GitLab