simplejsble 1.2.1-dev125 → 1.2.1-dev129

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/config.d.ts CHANGED
@@ -11,6 +11,10 @@ export interface WinRTConfig {
11
11
  experimentalReinitializeWinrtApartmentOnMainThread: boolean;
12
12
  useDeferredDisconnect: boolean;
13
13
  }
14
+ export interface AndroidConfig {
15
+ /** Negotiate MTU on connect. Defaults to true. */
16
+ negotiateMtu: boolean;
17
+ }
14
18
  export interface DonglConfig {
15
19
  /** Include Dongl adapters in Backend.getBackends() and Adapter.getAdapters(). */
16
20
  useDonglBackend: boolean;
@@ -28,6 +32,9 @@ export declare const Config: Readonly<{
28
32
  winRT: WinRTConfig & {
29
33
  reset(): void;
30
34
  };
35
+ android: AndroidConfig & {
36
+ reset(): void;
37
+ };
31
38
  dongl: DonglConfig & {
32
39
  reset(): void;
33
40
  };
package/dist/config.js CHANGED
@@ -31,6 +31,9 @@ exports.Config = Object.freeze({
31
31
  experimentalReinitializeWinrtApartmentOnMainThread: setting('winRT.experimentalReinitializeWinrtApartmentOnMainThread'),
32
32
  useDeferredDisconnect: setting('winRT.useDeferredDisconnect'),
33
33
  }),
34
+ android: group('android', {
35
+ negotiateMtu: setting('android.negotiateMtu'),
36
+ }),
34
37
  dongl: group('dongl', {
35
38
  useDonglBackend: setting('dongl.useDonglBackend'),
36
39
  autoUpdate: setting('dongl.autoUpdate'),
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { Adapter, type AdapterEvents } from './adapter';
2
2
  export { Backend } from './backend';
3
- export { Config, type DonglConfig, type SimpleBluezConfig, type WinRTConfig } from './config';
3
+ export { Config, type AndroidConfig, type DonglConfig, type SimpleBluezConfig, type WinRTConfig } from './config';
4
4
  export { SimpleBLEError, type ErrorCode } from './errors';
5
5
  export { Logging, type LogEntry, type LogLevel } from './logging';
6
6
  export { LocalCharacteristic, LocalPeripheral, LocalService, type LocalCharacteristicEvents, type LocalPeripheralEvents, } from './local';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "1.2.1-dev125",
3
+ "version": "1.2.1-dev129",
4
4
  "description": "SimpleBLE for Node.js and Electron: a cross-platform Bluetooth Low Energy library",
5
5
  "keywords": [
6
6
  "bluetooth",