From 1acade48830572e751a528624019cae1bbbab43d Mon Sep 17 00:00:00 2001 From: Josh Miles Date: Wed, 23 Aug 2017 19:36:41 -0400 Subject: [PATCH] fix(serial): add missing options for the open method (#1844) --- src/@ionic-native/plugins/serial/index.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/serial/index.ts b/src/@ionic-native/plugins/serial/index.ts index dd76d5475c..3c63fd9d05 100644 --- a/src/@ionic-native/plugins/serial/index.ts +++ b/src/@ionic-native/plugins/serial/index.ts @@ -12,6 +12,12 @@ export interface SerialPermissionOptions { export interface SerialOpenOptions { baudRate: number; + dataBits: number; + stopBits: number; + parity: number; + dtr: boolean; + rts: boolean; + sleepOnPause: boolean; } /** @@ -29,7 +35,13 @@ export interface SerialOpenOptions { * * this.serial.requestPermission().then(() => { * this.serial.open({ - * baudRate: 9800 + * baudRate: 9800, + * dataBits: 4, + * stopBits: 1, + * parity: 0, + * dtr: true, + * rts: true, + * sleepOnPause: false * }).then(() => { * console.log('Serial connection opened'); * });