내용으로 건너뛰기

How we can connect Multiple devices with same certificate and same things with AWS MQTT

0

I have more than 10 ESP32 devices and I have no idea about how to connect Multiple device with same MQTT Certificate and need to use same things for multiple device.Please share any suggestion .Thanks

질문됨 2년 전551회 조회
2개 답변
0

Hi. It's a best practice for every device to have a unique certificate: https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html

We recommend that each device or client be given a unique certificate to enable fine-grained client management actions, including certificate revocation.

AWS IoT offers several provisioning mechanisms that can help you provision unique certficiates: https://docs.aws.amazon.com/whitepapers/latest/device-manufacturing-provisioning/device-manufacturing-provisioning.html

need to use same things for multiple device

Why? Every device will need to connect using a unique MQTT client ID. If a second device connects with the same client ID as the first, the first device will be disconnected. Typically, the MQTT client ID will match the Thing name, as this helps in writing IoT policies that can scale using Thing policy variables: https://docs.aws.amazon.com/iot/latest/developerguide/thing-policy-variables.html

Do your devices have a unique ID, like a serial number, MAC address, or an MCU ID that your firmware can read? Client IDs and thing names are often automically formed at scale using this kind of information.

AWS
전문가
답변함 2년 전
0

You are learning that your policies need to adapt to scale, ie. 1 device vs. 10 devices vs. 1000 devices, etc. If you want to experiment with policies, check out our hands-on AWS IoT lab https://mqttlab.iotsim.io/aws/

답변함 2년 전

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

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

관련 콘텐츠