This commit is contained in:
liuwu 2023-11-01 11:05:51 +08:00
parent ab1b5f183e
commit a59107e2b3
1 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ function disconnect(param) {
/*判断是否已连接*/
function isConnected(param,callback){
ble.isConnected(param, function(ret) {
if (ret) {
if (ret.status) {
console.log('已连接');
}
callback(ret.status)
@ -509,7 +509,7 @@ function getMess(param, callback) {
param1.msg = newmsg + Math.abs(Number(_planSum - _feedNum)).toFixed(0) + 'kg';
}
// param1.msg = newmsg + Math.abs(Number(param.value)).toFixed(0) + 'kg'
// console.log(param1.msg)
console.log(param1.msg)
//组装字符卡LED报文
zfk.getMsg(param1, function (ret, err) {
var str = ret.sendMsg;