I’m currently building a sensory suit for an art installation. We have three suits being made that relay user data to a central processing computer. Im looking for a way to connect three photons to said computer with minimal lag while being able to read three independant data streams.
Right now we have four sensors outputting binary values (on/off), and a 9-DOF device that has been trimmed down to three variables. So, I need to transmit 8 variables to my computer (12 char total). Ive had success using a single photon in which I snt the values to the cloud via publish(), and read them onto my computer via Node.js and particle.getEventStream(). But when I try to connect another photon in my Node.js script one is given permission to connect and transmits, but the other has no data being received on the server side.
What would be the best way to move forward? Should I create a dedicated TCP server and use several ports to listen to all three devices simultaneously? I have almost no experience in back-end web development so Im not sure how to do this at all but from the large sum of forums Ive read this seems possible. If theres an efficient (and not terribly difficult) solution the help would be greatly appreciated.