fixing notification
This commit is contained in:
@@ -297,7 +297,7 @@ const mqttOptions = {
|
||||
};
|
||||
|
||||
const mqttUrl = 'ws://localhost:1884'; // Ganti dengan broker kamu
|
||||
const topic = 'morek';
|
||||
const topic = process.env.TOPIC_COD ?? 'morek';
|
||||
|
||||
const mqttClient = mqtt.connect(mqttUrl, mqttOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user