I am creating an application for mobile phone which sends the acceleration measurements through TCP connection to the server.
I would like to reduce the message length as much as possible but in the same time I would like to make it the current format possible to extend without a lot of pain on modifying receiver parsing mechanism.
At the beginning I send a string in a following format:
##measurementTime#AccelerationX#AccelerationY#AccelerationZ
butsoon after the implementation I added to the message some other data and I realized it will take a lot of time if I will have to modify the format frequently.
I was thinking about the XML, but it adds a lot of load which of course I would like to avoid (the measurements are sent every 100-250 ms).
Thanks!