Send data to p5.js from another program

Hello !

I have some code written in C for a robot, and I would like to make a simulation with processing.

I want to send data ( the coordinate of a few robots on a map) from my C program to a processing instance. In another words, I want to read on each iteration of my processing loop data generated by my C program.

What is the easiest way to establish this communication ?

write to a fifo file ? send data through serial ?use stdin and stdout ?

If possible I would like to do that with p5.js, as Iā€™m more used to the syntax

Thanks for your help :slight_smile:

1 Like

Maybe this one?