react-native-bluetooth-classic
Version:
Implement bluetooth classic (serial) on Android (Bluetooth Adapter) and IOS (External Accessory)
19 lines (18 loc) • 1.03 kB
JavaScript
var BluetoothError;
(function (BluetoothError) {
BluetoothError["BLUETOOTH_NOT_ACCEPTING"] = "BLUETOOTH_NOT_ACCEPTING";
BluetoothError["BLUETOOTH_IN_ACCEPTING"] = "BLUETOOTH_IN_ACCEPTING";
BluetoothError["BLUETOOTH_IN_DISCOVERY"] = "BLUETOOTH_IN_DISCOVERY";
BluetoothError["ALREADY_CONNECTED"] = "ALREADY_CONNECTED";
BluetoothError["ALREADY_CONNECTING"] = "ALREADY_CONNECTING";
BluetoothError["NOT_CURRENTLY_CONNECTED"] = "NOT_CURRENTLY_CONNECTED";
BluetoothError["BONDING_UNAVAILABLE_API"] = "BONDING_UNAVAILABLE_API";
BluetoothError["DISCOVERY_FAILED"] = "DISCOVERY_FAILED";
BluetoothError["WRITE_FAILED"] = "WRITE_FAILED";
BluetoothError["READ_FAILED"] = "READ_FAILED";
BluetoothError["ACCEPTING_CANCELLED"] = "ACCEPTING_CANCELLED";
BluetoothError["CONNECTION_FAILED"] = "CONNECTION_FAILED";
BluetoothError["CONNECTION_LOST"] = "CONNECTION_LOST";
BluetoothError["PAIRING_FAILED"] = "PAIRING_FAILED";
})(BluetoothError || (BluetoothError = {}));
export default BluetoothError;