I got 2 ports on UDP, one incoming and one outgoing.
I’m looking for a way to sort out incoming and outgoing data on each port.
Like if I got two sensors incoming, I want to have unique ID on each, and data.
Is there any good or preferred way to mange this?
I got the connection working, what im asking for is how to sort my incoming and outgoing adressing.
I have a few sensors I want to get data from, and I need to know who im receiveing from by code them with an ID.
Sensor 1: 01 230
Sensor 2: 02 100
Where 01, 02, 03 is ID and following data.
Any suggestions how to do this?