ard_newbie:
Read these arduino tutorials to convert Softwareserial commands into Serial commands:https://www.arduino.cc/en/Reference/SoftwareSerial
And look at example sketches in: Menu>File>Examples>Communication>SerialEvent and SerialCallResponse
BTW: edit your post and post your code between post tags </>
Thank you for the reply. And sorry for the cross-post. Excuse me for this is my first post. But now I read all the rules.
I'd made some research on the "reference" as you mentioned. I could manage to do some conversions .
The code now loads without any errors but I could not be able to get an errorless response from the serial device (which in my case is a Laser Range Finder ).
BTW I suceeded sending commands and getting correct measurement with a basic skech But anyway before I spend your time I'll concentrate on SerialEvent and Serailcallresponse .
On the refenrence I read SerialEvent1 is only for Mega. What is the correct way to use this for Due and for Serial1
Thank you...