You need to have either a fixed terminating character, so you enter 5,0,# or 1,0,0,#, or you have to implement a timeout based routine. The fixed terminator is easiest to implement.
You need to have either a fixed terminating character, so you enter 5,0,# or 1,0,0,#, or you have to implement a timeout based routine. The fixed terminator is easiest to implement.