Split lib from modules
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { MultiMessageBroker, FileImporter } from "prototyp";
|
||||
|
||||
import HTTPInterfaceServer from "./modules/httpInterfaceServer";
|
||||
import MQTTConnector from "./modules/mqttConnector";
|
||||
|
||||
const aas = FileImporter.readAASByPath("../owntest.json");
|
||||
|
||||
const broker = new MultiMessageBroker();
|
||||
broker.registerInterfaceConnection({ interfaceConnection: MQTTConnector, config: { reconnectPeriod: 1000 }})
|
||||
broker.registerAAS({ aas, serverInterfaces: { serverInterface: HTTPInterfaceServer, config: { bindPort: 3000, bindAddress: "0.0.0.0" } } });
|
||||
|
||||
broker.prepare();
|
||||
broker.start();
|
||||
Reference in New Issue
Block a user