Update example configuration in README.md

update due to refactoring of JS
This commit is contained in:
c1328
2026-01-29 22:51:56 +01:00
committed by GitHub
parent f38dd41f1b
commit c9d6b742bb
+11 -9
View File
@@ -270,15 +270,17 @@ CTRL-A-D
Beispiel:
```text
// Configuration of IP adress of meshtastic node that is connected via TCP
var deviceIp = '<IP-of-your-meshtastic-node>';
// Configuration of MQTT instance that is used (in my case 3rd instance)
var mqttPath = 'mqtt.3.msh.*.json.*';
// Configuration of channel names
var chats = [
{ name: 'Default', id: 0 },
{ name: '<private channel>', id: 1 },
{ name: '<public channel>', id: 2 }
// IP of your Meshtastic node
const deviceIp = "192.168.1.xxx";
// MQTT path variable (note the 3 because I use the 3rd instance of mqtt at IoBroker)
const mqttPath = /^mqtt\.3\.msh\..*\.json\..*$/;
// configure the channels of your node
const chats = [
{ name: "Default", id: 0 },
{ name: "Puig", id: 1 },
{ name: "Baleares", id: 2 }
];
```