diff --git a/src/main.ts b/src/main.ts index a343027..db0221e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,7 @@ import * as Mqtt from 'mqtt' import { post } from 'request' -const BROKER : string = 'mqtt://localhost' +const BROKER : string = 'mqtt://172.16.2.16' const INFLUXDB : string = 'http://172.16.3.15:8086/write?db=smarthome' const VERBOSE : boolean = true @@ -49,7 +49,7 @@ mqttClient.on('message', (topic : string, messageBuf : Buffer) => { if (err) { log.error(`Error when sending data to database: ${err}`) } else { - log.info(`Response from database: ${res}, ${body}`) + log.info('Inserted into database') } })