TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Connect Serial Port
Gokul
Apr 25
2016
Code
921
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
//Add the NameSpace fo serialPort
using
System.Io.ports;
Write the below code
in
a Button Click :-
---------------------------------------
SerilaPort sp=
new
SerialPort();
sp.PortName=
"COM1"
;
sp.BaudRate=9600
sp.DataBits=8;
sp.Open();
textWieght.Text=sp.ReadLine().ToString();
sp.Close();
read value in textbox