update/improve-uix #2

Merged
jchomaz merged 12 commits from update/improve-uix into main 2026-02-03 19:54:50 +01:00
Showing only changes of commit 7413a2a78f - Show all commits

View File

@@ -1,8 +1,14 @@
// Import necessary modules
const mqtt = require('mqtt');
const fs = require('fs');
const path = require('path');
// Load configuration
const configPath = path.join(__dirname, '../config/configuration.json');
const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
// MQTT broker configuration
const brokerUrl = 'mqtt://nanomq'; // Broker URL (change if needed)
const brokerUrl = config.mqttHost;
const clientId = 'buzzer_manager';
const options = {
clientId,