The Cloud Service Setup Guide indicates to install RabbitMQ version 3.6.1. I was not able to get that version and instead installed version 3.6.15.
I was having trouble connecting and found that my version of RabbitMQ appears to be using port 5672 instead of port 1883 as shown in the NXP documentation. The contents of /etc/rabbitmq/rabbitmq-env.conf are as follows:
If I enter the command 'rabbitmqctl status' I get the following (just showing relevant part that indicates 5672)"
I therefore changed 'messageBrokerConfiguration.js' to refer to port 5672.
After doing that, the NodeJS program repeatedly reports "MQTT Connection Closed" and the MQTT log file in '/var/log/rabbitmq' shows the following error:
Any idea what the "bad_header" problem refers to? Any suggestions.
Thanks in advance. By the way, this is a really impressive system.
I got this working after doing some more reading and testing. It appears I was wrong to change to port 5672. While I believe I enabled the mqtt plugin during the initial setup, it appears to have not been enabled, as shown in the "rabbitmqctl status" output above. I later tried listing all plugins and it showed that mqtt was available.
I tried running the enable rabbitmq_mqtt command again and then the status command showed that there was a listener on mqtt port 1883. I rebooted my machine, and then it came back up with mqtt enabled and listening, and now everything works.
Strange... I'm not sure what went wrong initially.
For other readers benefit, I found that the "rabbitmqctl status" command was helpful in debugging the problem.