You could send ASCII "1000", but that is in reality most likely sent as the following "decimal" ASCII values: "49,48,48,48,13,10" with 13 and 10 being there or not as line endings. So you need to create an "interpreter" that recreates the ASCII data back into a value.