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!
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-tasks
api method to do a Bulk registration.