- 최신
- 최다 투표
- 가장 많은 댓글
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.
관련 콘텐츠
- 질문됨 7달 전
- AWS 공식업데이트됨 6달 전
- AWS 공식업데이트됨 3년 전
Thanks. I'm using the arduino-aws-greengrass-iot api so I'll grep their code to see where I can set that.