fixing notification

This commit is contained in:
2026-01-07 16:09:53 +07:00
parent 2a25339478
commit cecdc09719
4 changed files with 9 additions and 8 deletions

View File

@@ -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);