From db5a646826a37b9af54abd3c0adc9c6faacce6f1 Mon Sep 17 00:00:00 2001 From: cheetah Date: Wed, 31 Mar 2021 21:27:44 +0000 Subject: [PATCH] added dapnet support --- types/connectors/DAPNETConnector.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/connectors/DAPNETConnector.js b/types/connectors/DAPNETConnector.js index aae14b7..9ecb6a0 100644 --- a/types/connectors/DAPNETConnector.js +++ b/types/connectors/DAPNETConnector.js @@ -1,6 +1,7 @@ const Connector = require("./Connector") const config = require('../../config.json') -const axios = require('axois') +const axios = require('axios') +const e = require("express") class DAPNETConnector extends Connector { constructor (amqpConnMngr) { @@ -25,6 +26,7 @@ class DAPNETConnector extends Connector { password: config.connectors.dapnet.password } } + console.log(config.connectors.dapnet.endpoint, dapnetRequest, extraParameters) return axios.post(config.connectors.dapnet.endpoint, dapnetRequest, extraParameters) .then(() => { this.connectorRegistry.reportState(msg, UUID, 'routed')