@leonardojc/capacitor-ioboard 1.2.1 → 1.2.2
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.
|
@@ -275,16 +275,4 @@ public class IOBoardProtocolUtils {
|
|
|
275
275
|
|
|
276
276
|
return results.toString();
|
|
277
277
|
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Convert frame bytes to Latin-1 encoded string for transmission
|
|
281
|
-
*/
|
|
282
|
-
public static String frameToLatin1String(byte[] frame) {
|
|
283
|
-
try {
|
|
284
|
-
return new String(frame, "ISO-8859-1");
|
|
285
|
-
} catch (Exception e) {
|
|
286
|
-
// Fallback to default encoding
|
|
287
|
-
return new String(frame, java.nio.charset.StandardCharsets.ISO_8859_1);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leonardojc/capacitor-ioboard",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A Capacitor plugin for controlling custom IOBOARD devices via RS485 serial communication with full native protocol implementation",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|