use Stream object,now compatible with HardwareSerial and SoftwareSerial