1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
Even when offline, you can use the read_messages API to read data from a stream from an arbitrary starting point. https://docs.aws.amazon.com/greengrass/v2/developerguide/work-with-streams.html#streammanagerclient-read-messages
Cheers,
Michael
Contenus pertinents
demandé il y a 2 ans
demandé il y a 2 ans
demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 10 mois

This isn't documented because you aren't supposed to read the data manually, I absolutely will point you to the read messages API to do this for you.
With that said, the header format is 32 bytes total, ending with the payload length:
Thanks for suggesting the
read_messagesAPI. Would this API only work when called inside of a Greengrass component? Is there an API we can use without spinning up a Greengrass component?Normally you'd need a component yes just to authenticate with Stream manager, but you can also disable authentication in Stream manager.
STREAM_MANAGER_AUTHENTICATE_CLIENThttps://docs.aws.amazon.com/greengrass/v2/developerguide/stream-manager-component.html#stream-manager-component-configurationOk thanks for that pointer - I will verify that. I have another follow-up question: It appears to me that the StreamManager persists the data regardless of whether the data is successfully exported, what's the intention behind that design? An alternative in my mind is to remove the successfully exported data, which will save storage space in the core device.