@enyo-energy/energy-app-sdk 0.0.123 → 0.0.124

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.
@@ -139,6 +139,11 @@ export interface EnergyAppBluetooth {
139
139
  * @returns Promise resolving with an active {@link EnergyAppBluetoothSession}.
140
140
  */
141
141
  connect(address: string, options?: EnergyAppBluetoothConnectOptions): Promise<EnergyAppBluetoothSession>;
142
+ /**
143
+ * Force-bond (SMP pairing) with a peripheral. Only required for devices that
144
+ * refuse GATT operations until bonded. Most BLE accessories do not need this.
145
+ */
146
+ pair(address: string, options?: EnergyAppBluetoothConnectOptions): Promise<void>;
142
147
  /**
143
148
  * Convenience scope: connects to the peripheral, runs `fn`, and always
144
149
  * disconnects (even if `fn` throws). Strongly preferred over manual
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
9
9
  /**
10
10
  * Current version of the enyo Energy App SDK.
11
11
  */
12
- exports.SDK_VERSION = '0.0.123';
12
+ exports.SDK_VERSION = '0.0.124';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.123";
8
+ export declare const SDK_VERSION = "0.0.124";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -139,6 +139,11 @@ export interface EnergyAppBluetooth {
139
139
  * @returns Promise resolving with an active {@link EnergyAppBluetoothSession}.
140
140
  */
141
141
  connect(address: string, options?: EnergyAppBluetoothConnectOptions): Promise<EnergyAppBluetoothSession>;
142
+ /**
143
+ * Force-bond (SMP pairing) with a peripheral. Only required for devices that
144
+ * refuse GATT operations until bonded. Most BLE accessories do not need this.
145
+ */
146
+ pair(address: string, options?: EnergyAppBluetoothConnectOptions): Promise<void>;
142
147
  /**
143
148
  * Convenience scope: connects to the peripheral, runs `fn`, and always
144
149
  * disconnects (even if `fn` throws). Strongly preferred over manual
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.123";
8
+ export declare const SDK_VERSION = "0.0.124";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.123';
8
+ export const SDK_VERSION = '0.0.124';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",