Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tejt99 committed Jul 8, 2024
1 parent 729e3c0 commit 3b1394f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion up_stop_down/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
const login = params['login'];
const password = params['password'];
const topic = params['topic'];
message = message + params['code']

if (brokerUrl && login && password && topic) {
const options = {
Expand All @@ -91,6 +90,7 @@
client.on('connect', function () {
console.log('Connected to broker');
function sendMsg(message) {
message = message + params['code']
client.publish(topic, message, function (err) {
if (err) {
console.error('Error publishing message:', err);
Expand Down

0 comments on commit 3b1394f

Please sign in to comment.