Serial
This plugin provides functions for working with Serial connections
Cordovaの問題で困っていますか?

本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- Ubuntu
利用方法
React
Angular
import { Serial } from '@ionic-native/serial/ngx';
constructor(private serial: Serial) { }
...
this.serial.requestPermission().then(() => {
this.serial.open({
baudRate: 9800,
dataBits: 4,
stopBits: 1,
parity: 0,
dtr: true,
rts: true,
sleepOnPause: false
}).then(() => {
console.log('Serial connection opened');
});
}).catch((error: any) => console.log(error));