'How to subscribe to Single thing group things in a single subscribe topic in AWS IoT MQTT?

How to subscribe to Single thing group things in a single subscribe topic in AWS IoT MQTT?

enter image description here

Usecase

Things List(ThingName)

  1. xxxxx
  2. xxxxx1
  3. xxxx2
  4. xxxxx3

....

  1. xxxx55

I want to subscribe to all the things in a single subscription topic. because there is a limitation on AWS one connection has subscribed max of 50 subscription topics.

i want to subscribe : $aws/things/xxxxx???/shadow/update/accepted



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source