I'm trying to write a serial function to talk AT commands to a device.
Naturally I want to pass the function the handle of the serial port in use, so the serial port isn't hard coded.
I'll aim to use hardware ports so not so concerned about softwareserial at this stage, but i can't work out how to do this.
Any help much appreciated. New to Arduino and C though I've been programming in other languages for quite a while.
thanks
Naturally I want to pass the function the handle of the serial port in use, so the serial port isn't hard coded.
I'll aim to use hardware ports so not so concerned about softwareserial at this stage, but i can't work out how to do this.
Any help much appreciated. New to Arduino and C though I've been programming in other languages for quite a while.
thanks