I don't want to use a SD card so My First solution was to send it directly via UDP, working good in My local nerwork with a Raspberry Pi in the receiving end (loosing maybe 15% of the data though, guessing that's the lack of UDP buffer in the Pi).
Now I'm thinking of sending the data with Mqtt. I want to buffer 1s of data and then send it, I think I Will use a buffer that can handle 3s of data.
Doing the sample in a interrupt routine send to work well.
Then when I thought about a buffer for the mqtt-mess I reslised it Will take approx 20kB of ram for 1s of data. Is it better to send the data as binary?, How can I do that with mqtt?