We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private void handleFileName(byte[] value) { if (value.length == 2 && value[0] == ACK && value[1] == ST_C) {//Receive 'ACK C' for file name Lg.f("Received 'ACK C'"); packageErrorTimes = 0; startSendFileData(); } else if (value[0] == ST_C) {//Receive 'C' for file name, this package should be resent Lg.f("Received 'C'"); handlePackageFail("Received 'C' without 'ACK' after sent file name"); } else { handleOthers(value[0]); } }
蓝牙接收数据不确定性,可能断断续续的。当接收的 byte 分开来送入库,此时就认不出了。 这里只能是 ACK C在一个数组,2个字节一起送入才能识别出来!
The text was updated successfully, but these errors were encountered:
好的,最近在忙mqtt都没有想起来这个库了😄
Sorry, something went wrong.
No branches or pull requests
private void handleFileName(byte[] value) {
if (value.length == 2 && value[0] == ACK && value[1] == ST_C) {//Receive 'ACK C' for file name
Lg.f("Received 'ACK C'");
packageErrorTimes = 0;
startSendFileData();
} else if (value[0] == ST_C) {//Receive 'C' for file name, this package should be resent
Lg.f("Received 'C'");
handlePackageFail("Received 'C' without 'ACK' after sent file name");
} else {
handleOthers(value[0]);
}
}
蓝牙接收数据不确定性,可能断断续续的。当接收的 byte 分开来送入库,此时就认不出了。
这里只能是 ACK C在一个数组,2个字节一起送入才能识别出来!
The text was updated successfully, but these errors were encountered: