Even more documentation

This commit is contained in:
Daniel Kluge
2023-11-01 23:44:43 +01:00
parent 86dcd8d2f8
commit 591cf6662b
10 changed files with 506 additions and 8 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import MQTTConnector from "./modules/mqttConnector";
const aas = FileImporter.readAASByPath("../owntest.json");
// Then we create a new broker instance
const broker = new MultiMessageBroker();
const broker = MultiMessageBroker.getInstance();
// We need to register the connector we want to use.
// These will be chosen later if needed.
broker.registerInterfaceConnection({ interfaceConnection: MQTTConnector, config: { reconnectPeriod: 1000 }})