brilliantsole 0.0.23 → 0.0.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brilliantsole",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "JavaScript SDK for BrilliantSole Smart Insoles",
5
5
  "main": "./build/brilliantsole.module.js",
6
6
  "module": "./build/brilliantsole.module.js",
@@ -196,7 +196,7 @@ abstract class BaseClient {
196
196
  }
197
197
  const { string: connectedBluetoothDeviceIdStrings } = parseStringFromDataView(dataView, byteOffset);
198
198
  _console.log({ connectedBluetoothDeviceIdStrings });
199
- const connectedBluetoothDeviceIds = JSON.parse(connectedBluetoothDeviceIdStrings);
199
+ const connectedBluetoothDeviceIds = JSON.parse(connectedBluetoothDeviceIdStrings).connectedDevices;
200
200
  _console.log({ connectedBluetoothDeviceIds });
201
201
  this.onConnectedBluetoothDeviceIds(connectedBluetoothDeviceIds);
202
202
  }
@@ -163,7 +163,7 @@ abstract class BaseServer {
163
163
  get #connectedDevicesMessage() {
164
164
  return createServerMessage({
165
165
  type: "connectedDevices",
166
- data: JSON.stringify(DeviceManager.ConnectedDevices.map((device) => device.bluetoothId)),
166
+ data: JSON.stringify({ connectedDevices: DeviceManager.ConnectedDevices.map((device) => device.bluetoothId) }),
167
167
  });
168
168
  }
169
169