Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to recieve data from cMqtt component and process it?

How to recieve payload from cmqtt component and process the content from memory.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Found the solution. Used cconvertbodyto compnent with byte[].class as target class name. This converted the mqtt body to binary data.

View solution in original post

4 Replies
vapukov
Master II
Master II

Hi,

 

for begin you could check Talend help - https://help.talend.com/reader/cc0ggqk5mGdagFtNOvz6vA/A8XUgMXaNyx~uG52W564Tw

 

for start, you could use 2 components:

  • ConnectionFactory
  • cMQTT

 

it for begin, but then - too many variants depending from what you need (including DI subjobs)

0683p000009M3st.png

 

Anonymous
Not applicable
Author

I need to receive the payload as binary data and upload it to s3 bucket with a file name(file name shoud be like test_{currenttimestamp}.gz). I have changed the data using cMap to byte array. What should be the next steps to create the dynamic filename and uploading byte array data to s3.?
vapukov
Master II
Master II

for proper and full answer need to test of course, but I have not right now access to s3

 

but you can use - cAWSConnection and cAWSS3, filename you could define any

 

 

 

 

 

Anonymous
Not applicable
Author

Found the solution. Used cconvertbodyto compnent with byte[].class as target class name. This converted the mqtt body to binary data.