P
pei_world
Hi there,
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools
kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:
//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();
if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================
Thanks
Pei
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools
kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:
//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();
if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================
Thanks
Pei