service file

This commit is contained in:
2018-06-28 22:25:00 +02:00
parent af10384cb7
commit 0729e559a3
2 changed files with 19 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export class MqttclientService {
private callbacks : Map<string, callbackFunc> = new Map()
constructor() {
this.mqttClient = Mqtt.connect('ws://127.0.0.1:9001')
this.mqttClient = Mqtt.connect('ws://172.16.2.16:9001')
this.mqttClient.on('connect', () => {
console.log('MQTT connected')
this.callbacks.forEach((value: callbackFunc, key: string) => {