Csv value to mqtt

gerribaldi
Mon, 13 Oct 2025 15:12:43 +0000
General

HI,

i read a csv file from a ftp server and want to sent the values to a mqtt broker. My point know is, how can i create for each value in a line separate topic.

The csv have this fields:
sn; volume 1; volume 2; volume 3
22; 99; 33; 44; 77
11; 99; 33; 44; 77

At the end the topics should look like this:
/foo/bar/22/volume1/
/foo/bar/22/volume2/

/foo/bar/22/volume1/
/foo/bar/11/volume2/

At the moment i need this for something like 10-15 rows. So i can us copy and paste.

But if everything works fine, i will need a script or function where i can handle 400-450 lines. And my knowledge with functions are pretty basicly

Thanks for any support

7 posts - 4 participants