加入008A新产品
This commit is contained in:
@ -141,7 +141,7 @@
|
||||
<!-- 人员信息登记 -->
|
||||
<view class="form-section" v-if="hasPermission('4')">
|
||||
<TextToHexV2 class="TextToHex" ref="textToHex" :txts="formData.textLines" :bgColor="'#FFFFFF'"
|
||||
:color="'#000000'" :fontSize="12" :returnType="10" />
|
||||
:color="'#000000'" :fontSize="14" :returnType="10" />
|
||||
|
||||
<view class="mode-buttons">
|
||||
<view class="section-title">人员信息登记</view>
|
||||
@ -423,7 +423,7 @@
|
||||
Status: {
|
||||
pageHide: null
|
||||
},
|
||||
inteval: 1000
|
||||
inteval: 200
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -921,7 +921,7 @@
|
||||
json.instruct[1] = parseInt(selectedItem.instructValue);
|
||||
|
||||
ble.sendString(f.deviceId, json).then(res => {
|
||||
console.log("ble send success")
|
||||
console.log("ble send success",json);
|
||||
this.lightModeA = false;
|
||||
}).catch(ex => {
|
||||
console.error("ble send fail,mqsending....")
|
||||
@ -1226,15 +1226,9 @@
|
||||
dataView.setUint8(0, 0x55); // 帧头
|
||||
dataView.setUint8(1, 0x02); // 帧类型:开机画面
|
||||
dataView.setUint8(2, currentPacket); // 包序号
|
||||
dataView.setUint16(3, packetData.length*2,false); // 包t长度
|
||||
|
||||
|
||||
if (packetData.length == 250) {
|
||||
dataView.setUint8(3, 0x01);
|
||||
dataView.setUint8(4, 0xF4);
|
||||
} else {
|
||||
dataView.setUint8(3, 0x00);
|
||||
dataView.setUint8(4, 0x64);
|
||||
}
|
||||
|
||||
|
||||
// 填充数据(每个RGB565值占2字节)
|
||||
for (let i = 0; i < packetData.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user