本文介绍了serialportDatareceived事件处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的appli中我需要在两个不同的时间读取thuogh serialport的数据。



1)当我通过serialport将数据写入手持系统时,sholud发送成功信号

2)从serialport读取其他一些数据。



为第一个,我写了接收成功数据的代码,在esrialportdatareceived事件中。



然后为2)我在哪里可以写下阅读代码。如果我在每次成功数据显示为输出时写入该事件。



in my appli i need to read data thuogh serialport in two different times.

1) when i write data to handheld system through serialport ,that sholud send a success signal
2)To read some other data from serialport.

for the first one, i wrote the code for receiving success data, in esrialportdatareceived event.

then for 2) where can i write the code of reading. if i write in that event everytime success data is showing as output.

推荐答案


这篇关于serialportDatareceived事件处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 09:21