The multi-transport MQTT broker for node.js. It supports AMQP, Redis, MongoDB, ZeroMQ or just MQTT.
mcollina on master
Unmaintained redirect to aedes Merge pull request #811 from mo… (compare)
robertsLando on robertsLando-patch-1
Unmaintained redirect to aedes (compare)
im using MQTT.js with mosca
i ve set username authentication in mosca and from mqttjs i want to set username
so i ve done with as in examples
mosca recives it and
authenticate the client correctly
but MQTT.js client keep saying Bad username and password
'use strict'
const config = require('../config')
const mqtt = require('mqtt')
const client = mqtt.connect(config.mqtt, { username: 'RPMS_SERVER', password: 'none' })
Hello everyone, I've been trying to setup Ponte for accepting https requests, can someone help me?
My Ponte code:
var ponte = require("ponte");
var SECURE_KEY = dirname + '/MyKey.key';
var SECURE_CERT = dirname + '/MyCert.crt';
var opts = {
id:'myPonte',
logger: {
name: 'PonteBroker',
level: 'info'
},
http: {
secure : {
port: 3001,
keyPath: SECURE_KEY,
certPath: SECURE_CERT,
},
},
mqtt: {
secure : {
port: 8443,
keyPath: SECURE_KEY,
certPath: SECURE_CERT,
},
},
persistence: {
type: "mongo",
url: "mongodb://localhost:27017/ponte"
},
};
var server = ponte(opts);
server.on('clientConnected', function(client) {
console.log('client connected', client.id);
});
server.on("updated", function(resource, buffer) {
console.log("Resource Updated", resource, buffer);
});
The TLS configuration for MQTT is working, but don't seems to work with HTTP.