Bruce
Bruce

Reputation: 49

AWS IoT sub-things?

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!

Upvotes: 0

Views: 116

Answers (1)

valdeci
valdeci

Reputation: 15237

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.

Upvotes: 1

Related Questions