0

One thing confuses me now, I have 20 Xbee motion sensors which are connected to one Xbee Gateway(Coordinator). When I connect the gateway to AWS IoT, how do I create the 20 sub-devices(things) in AWS IoT? Do I create 20 more things and put them under the parent gateway group? How do I manage the 20 motion sensors?

Thanks!

Bruce
  • 49
  • 7
  • Maybe different devices have different topic names? In AWS IoT, topics will represent my sub-things? – Bruce Sep 22 '21 at 07:30
  • Or adding the sensorId/Mac address (whichever works) to the MQTT json body, and create rules to indentify the correct device in with the sensorId? – Bruce Sep 22 '21 at 07:36
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 29 '21 at 10:18

1 Answers1

1

The best option will be create a THING_TYPE and then create all the things with this specific type, this will make easy to you manage similar things shadows, atributes e etc.

To create multiple things we can use the aws-sdk creating a thing for each item of a list using the CreateThing method.

Or you can use the POST /thing-registration-tasksapi method to do a Bulk registration.

valdeci
  • 13,962
  • 6
  • 55
  • 80