index.js 424 B

1234567891011121314151617181920212223
  1. let sysinfo = uni.getSystemInfoSync();
  2. const Bluetooth = {
  3. state: {
  4. //蓝牙信息
  5. BLEInformation: {
  6. platform: sysinfo.platform || "",
  7. deviceId: "",
  8. writeCharaterId: "",
  9. writeServiceId: "",
  10. notifyCharaterId: "",
  11. notifyServiceId: "",
  12. readCharaterId: "",
  13. readServiceId: "",
  14. }
  15. },
  16. mutations:{
  17. BLEInformationSet(state, info){
  18. state.BLEInformation = info;
  19. }
  20. }
  21. }
  22. export default Bluetooth;