I am sending messages via MQTT to Google IoT core.
My Iot registry is associated to 3 PubSub topics, each topics has several sub-directory.
My messages are fowarded to PubSub and then treated by a dataflow pipeline.
In my pipeline I read from Pub/Sub as follow:
common = (
pipeline
| 'Get common on pub/sub' >> beam.io.ReadFromPubSub(
topic='projects/project-id/topics/topics-id',
with_attributes=True)
)
but I'd like to be able to read from my pubsub topic Sub-Directory, is it possible ?
I already tried to add it like this:
topic='projects/project-id/topics/topics-id/sub-directory'
not successful