yyb
2025-10-23 5c1a553b74b8e4031ff5e6b1ff87dd99ddb3a033
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;