I am working on a project with serial port.
I want to Write command to serial port after every 1, 2 or x minute.
serialport1.write("AT");
I have a Timer and I am show Date and Time in my form with that timer . If there is any way to send above command with that timer or by using datetime.
I read lot of posts but didn’t understand, as I am starter in C# language.
You Can use Timer and Set Interval for Timer in Property window…!
You can Execute Command on the Timer Tick Event and update Date Time use Two Timer Control one for executing command with one or two minute and other timer use execute every second for Datetime updation…!
Timer Tick Event Execute Every time Based on timer Interval…!
U can Start and Stop Timer Easy Way like Timername.Start(); and Timername.Stop();
like Below :
Note: Timer Tick Event Execute you must start the Timer by using Timername.Start();