mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00
Fix MQTT adapter by setting subscription queue (#561)
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
This commit is contained in:
parent
1947d39119
commit
330545ad38
@ -80,7 +80,7 @@ function startMqtt() {
|
||||
return net.createServer(aedes.handle).listen(config.mqtt_port);
|
||||
}
|
||||
|
||||
nats.subscribe('channel.*', function (msg) {
|
||||
nats.subscribe('channel.*', {'queue':'mqtts'}, function (msg) {
|
||||
var m = message.RawMessage.decode(Buffer.from(msg)),
|
||||
packet;
|
||||
if (m && m.Protocol !== 'mqtt') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user