各位好,如题,msp430F6736如何判断接收任意字符串的长度?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
如果你是下位机的吧,从物理的角度来说,一般比较难判断上位机到底发了多少个哦。不妨两边约定一个简单的协议,第一个字节就是要收的这一包数据的长度,读到这个字节,接下去收多少个就可以了啊