@enyo-energy/energy-app-sdk 0.0.122 → 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.
- package/dist/cjs/packages/energy-app-bluetooth.d.cts +5 -0
- package/dist/cjs/packages/energy-app-modbus.d.cts +2 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/packages/energy-app-bluetooth.d.ts +5 -0
- package/dist/packages/energy-app-modbus.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
@@ -10,6 +10,8 @@ export interface ModbusOptions {
|
|
|
10
10
|
timeout?: number;
|
|
11
11
|
/** Modbus unit identifier for the target device */
|
|
12
12
|
unitId?: number;
|
|
13
|
+
/** Whether to use TLS/SSL for the Modbus connection. Defaults to false (plain Modbus TCP). Set to true to enable Modbus Security (TLS, typically port 802). */
|
|
14
|
+
useTls?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Interface for Modbus TCP/IP communication in enyo packages.
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -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.
|
|
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
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -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
|
|
@@ -10,6 +10,8 @@ export interface ModbusOptions {
|
|
|
10
10
|
timeout?: number;
|
|
11
11
|
/** Modbus unit identifier for the target device */
|
|
12
12
|
unitId?: number;
|
|
13
|
+
/** Whether to use TLS/SSL for the Modbus connection. Defaults to false (plain Modbus TCP). Set to true to enable Modbus Security (TLS, typically port 802). */
|
|
14
|
+
useTls?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Interface for Modbus TCP/IP communication in enyo packages.
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED