Receiving Serial Data but Unable to Route by Message Type
I am successfully receiving serial data, but I’m having trouble routing it correctly after parsing.The data is sent as structured message boxes in this format
E,1,100. Where
E → Message type (Encoder)
1 → Encoder number
100 → Encoder value (position, delta, etc.) The serial data is coming in correctly, but I’m not sure what the best approach is to route messages based on type and index. I need to dispatch the value to the correct handler depending on the message type and encoder number.
Any pointers on structuring the parser and routing logic efficiently?
Max Patch
Copy patch and select New From Clipboard in Max.
You don't need to send : as delimiter in first place.
but if it is there, then replace it with space

P.S.
you could also substitute at input

Thanks, removing the delimiter did it.