diff --git a/src/bleClient.ts b/src/bleClient.ts index a44b74a0..6fab25f8 100644 --- a/src/bleClient.ts +++ b/src/bleClient.ts @@ -176,7 +176,7 @@ class BleClientClass implements BleClientInterface { value: DataView, ): Promise { let writeValue: DataView | string = value; - if (Capacitor.platform !== 'web') { + if (Capacitor.getPlatform() !== 'web') { // on native we can only write strings writeValue = dataViewToHexString(value); }