brilliantsole 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4023,7 +4023,7 @@ class DeviceManager {
4023
4023
  this.AvailableDevices.push(existingConnectedDevice);
4024
4024
  return;
4025
4025
  }
4026
- const device = new Device$1();
4026
+ const device = new Device();
4027
4027
  const connectionManager = new WebBluetoothConnectionManager();
4028
4028
  connectionManager.device = bluetoothDevice;
4029
4029
  if (bluetoothDevice.name) {
@@ -4688,7 +4688,6 @@ _a$3 = Device, _Device_eventDispatcher = new WeakMap(), _Device_connectionManage
4688
4688
  };
4689
4689
  _Device_ReconnectOnDisconnection = { value: false };
4690
4690
  _Device_ClearSensorConfigurationOnLeave = { value: true };
4691
- var Device$1 = Device;
4692
4691
 
4693
4692
  var _DevicePairPressureSensorDataManager_instances, _DevicePairPressureSensorDataManager_rawPressure, _DevicePairPressureSensorDataManager_centerOfPressureHelper, _DevicePairPressureSensorDataManager_hasAllPressureData_get, _DevicePairPressureSensorDataManager_updatePressureData;
4694
4693
  const _console$c = createConsole("DevicePairPressureSensorDataManager", { log: true });
@@ -5380,11 +5379,18 @@ _NobleScanner__isScanning = new WeakMap(), _NobleScanner__nobleState = new WeakM
5380
5379
  __classPrivateFieldGet(this, _NobleScanner_noblePeripherals, "f")[noblePeripheral.id] = noblePeripheral;
5381
5380
  }
5382
5381
  let deviceType;
5383
- const serviceData = noblePeripheral.advertisement.serviceData;
5382
+ const { manufacturerData, serviceData } = noblePeripheral.advertisement;
5383
+ if (manufacturerData) {
5384
+ _console$7.log("manufacturerData", manufacturerData);
5385
+ const deviceTypeEnum = manufacturerData.readUint8(0);
5386
+ deviceType = DeviceTypes[deviceTypeEnum];
5387
+ }
5384
5388
  if (serviceData) {
5389
+ _console$7.log("serviceData", serviceData);
5385
5390
  const deviceTypeServiceData = serviceData.find((serviceDatum) => {
5386
5391
  return serviceDatum.uuid == serviceDataUUID;
5387
5392
  });
5393
+ _console$7.log("deviceTypeServiceData", deviceTypeServiceData);
5388
5394
  if (deviceTypeServiceData) {
5389
5395
  const deviceTypeEnum = deviceTypeServiceData.data.readUint8(0);
5390
5396
  deviceType = DeviceTypes[deviceTypeEnum];
@@ -5410,7 +5416,7 @@ _NobleScanner__isScanning = new WeakMap(), _NobleScanner__nobleState = new WeakM
5410
5416
  _console$7.assertTypeWithError(noblePeripheralId, "string");
5411
5417
  _console$7.assertWithError(__classPrivateFieldGet(this, _NobleScanner_noblePeripherals, "f")[noblePeripheralId], `no noblePeripheral found with id "${noblePeripheralId}"`);
5412
5418
  }, _NobleScanner_createDevice = function _NobleScanner_createDevice(noblePeripheral) {
5413
- const device = new Device$1();
5419
+ const device = new Device();
5414
5420
  const nobleConnectionManager = new NobleConnectionManager();
5415
5421
  nobleConnectionManager.noblePeripheral = noblePeripheral;
5416
5422
  device.connectionManager = nobleConnectionManager;
@@ -6013,7 +6019,7 @@ _UDPServer_clients = new WeakMap(), _UDPServer_socket = new WeakMap(), _UDPServe
6013
6019
 
6014
6020
  exports.ContinuousSensorTypes = ContinuousSensorTypes;
6015
6021
  exports.DefaultNumberOfPressureSensors = DefaultNumberOfPressureSensors;
6016
- exports.Device = Device$1;
6022
+ exports.Device = Device;
6017
6023
  exports.DeviceManager = DeviceManager$1;
6018
6024
  exports.DevicePair = DevicePair;
6019
6025
  exports.DeviceTypes = DeviceTypes;