上传代码
This commit is contained in:
23
p-BluPrint_1.0.288888/store/bluetooth/index.js
Normal file
23
p-BluPrint_1.0.288888/store/bluetooth/index.js
Normal file
@ -0,0 +1,23 @@
|
||||
let sysinfo = uni.getSystemInfoSync();
|
||||
const Bluetooth = {
|
||||
state: {
|
||||
//蓝牙信息
|
||||
BLEInformation: {
|
||||
platform: sysinfo.platform || "",
|
||||
deviceId: "",
|
||||
writeCharaterId: "",
|
||||
writeServiceId: "",
|
||||
notifyCharaterId: "",
|
||||
notifyServiceId: "",
|
||||
readCharaterId: "",
|
||||
readServiceId: "",
|
||||
}
|
||||
},
|
||||
mutations:{
|
||||
BLEInformationSet(state, info){
|
||||
state.BLEInformation = info;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Bluetooth;
|
Reference in New Issue
Block a user