aws-samples / aws-greengrass-samples

Samples for AWS Greengrass
MIT No Attribution
96 stars 68 forks source link

Component subscribing to "n" number of local devices. #43

Closed JoseOrtega17 closed 2 years ago

JoseOrtega17 commented 2 years ago

Hi According to the guide we can subscribe using IPC to a topic and listen to a local device.

i.e. topic = "clients/device_id/test"

The issue is that if I have "n" number of clients can I subscribe to all of them? On the bridge configuration, we can assign something like "clients/+/test" to publish. Can we do this also for the core device component?

By the way, I tried this in the component: "clients/+/test" and didn't work.

Best Regards Jose

JoseOrtega17 commented 2 years ago

Btw I'm following this guide: https://docs.aws.amazon.com/greengrass/v2/developerguide/interact-with-client-devices-in-components.html

MikeDombo commented 2 years ago

Hi Jose, That's something that we're working on, but is not supported to subscribe to wildcards with the local pubsub.

It is not and will not be supported to publish to wildcards.

JoseOrtega17 commented 2 years ago

Hi @MikeDombo so is there an alternative for a core device to subscribe to say 50 client devices?

Thanks Jose

MikeDombo commented 2 years ago

You need to know what topics to subscribe to and then subscribe to them, that is the only way.

JoseOrtega17 commented 2 years ago

OK Mike I got it, thank you