- Newest
- Most votes
- Most comments
Hello,
First for Moquette, cleanSession
is an option which you set in your MQTT client when connecting to the MQTT broker. Review your MQTT client's documentation for setting cleanSession
to false or 0.
EMQX is available for Windows on x64 CPUs and on Linux for x64 and arm aarch64 CPUs. Given the error message that you received, it is most likely that you are using Linux on armv7 which is not one of the supported platforms for EMQX.
Hi Al,
The Moquette bug you linked is very old and likely doesn't apply anymore. I'll ping the maintainer to close it.
Can you provide complete logs leading up to that NPE along with specific steps to reproduce? This is the line throwing the exception. It indicates that there is no MQTT session with the provided client ID, which would suggest your client is getting disconnected at some point after subscribing. We need more context to dig in further.
Consider opening an issue with us in Github.
Also, if you haven't already, take a look at our developer guide for setting up client devices.
Thanks, -joe
FWIW - one common cause of disconnects is due to duplicate client IDs. This occurs when two clients connect using the same MQTT client ID. This would be a bug in your client side code -- take a look to see if this might be happening.
Relevant content
- Accepted Answerasked 6 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
Thanks. I'm using the arduino-aws-greengrass-iot api so I'll grep their code to see where I can set that.