Closed jfduque closed 2 years ago
I don't see the line print("INTERNAL EVENT: ", message_string)
in your code sample. Did you correctly copy all of your sample code?
I don't see the line
print("INTERNAL EVENT: ", message_string)
in your code sample. Did you correctly copy all of your sample code?
Hi, thanks for the answer. Line 20 of the sample, inside on_stream_event
method
I've updated the policy from:
aws.greengrass.ipc.pubsub:
policy_1:
operations:
- aws.greengrass#SubscribeToTopic
resources:
- "*"
To:
aws.greengrass.ipc.pubsub:
<actual_component_name>:pubsub:1:
operations:
- aws.greengrass#SubscribeToTopic
resources:
- "$aws/things/{iot:thingName}/shadow/name/settings/update/accepted"
And seems to be working now
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
``Confirm by changing [ ] to [x] below:
Platform/OS/Device Debian 11 amd64
Describe the question I understand that when there is a change to a named shadow in AWS IoT Core, the GreenGrass core can use its IPC to broadcast events through its internal pubsub to subscribed components.
In my component's Python code I have the following:
The component's
recipe.yaml
(redacted for readability):And the
aws.greengrass.ShadowManager
deployment configuration:As far as I know, if I make a change in AWS IoT Core, editing the "settings" named shadow, the component should receive something and execute the line
print("INTERNAL EVENT: ", message_string)
. This isn't happening. Any idea how to solve this? Or how to debug it?Thanks in advance.