1 Replies - 738 Views - Last Post: 25 June 2011 - 06:14 AM Rate Topic: -----

#1 Mahloosh   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 25-June 11

In serial port control, what does "write(String)" do ?

Posted 25 June 2011 - 06:04 AM

Hello,



What does the
 write(String)
method exactly do ? I understand it writes a string to the serial port, but what does that mean ?
If I say for example
 write("A")
, what is the stream of bits that is sent ??

Thank you in advance for your help
Is This A Good Question/Topic? 0
  • +

Replies To: In serial port control, what does "write(String)" do ?

#2 raziel_   User is offline

  • Like a lollipop
  • member icon

Reputation: 469
  • View blog
  • Posts: 4,281
  • Joined: 25-March 09

Re: In serial port control, what does "write(String)" do ?

Posted 25 June 2011 - 06:14 AM

check this link out:
http://msdn.microsof...y/y2sxhat8.aspx

what it do is make the string to ASCII code and send it as bytes for example "A" ASCII code is 65 so as bytes it will send 65. Also in the link there is explanation on what ASCII encoding is used etc.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1