MQTT protocol add EC2

0

i want to run my broker server built in mosca js EC2 service in ubuntu operating system is running successfully in the server but when i want to access it from my IoT devices i can't connect. The reason is that the EC2 computer does not have access to the MQTT protocol. I can't activate "sudo ufw allow mqtt" command.

질문됨 2달 전140회 조회
1개 답변
0

Verify that your EC2 security group allows inbound traffic on the MQTT port (typically 8883). You may need to open this port instead of using the sudo ufw allow mqtt command.

Confirm that your device certificate and private key have been attached properly to your AWS IoT thing and that your client code is using these credentials correctly when connecting.

Consider using MQTT over WebSocket which can bypass port restrictions by tunneling over port 443. The AWS IoT Device SDKs support this out of the box.

profile picture
전문가
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠