added dapnet support

master
cheetah 4 years ago
parent a96b537f8c
commit db5a646826

@ -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')

Loading…
Cancel
Save