@leonardojc/capacitor-ioboard 2.0.0 → 2.0.1

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.
@@ -350,8 +350,10 @@ public class CapacitorIoboardPlugin extends Plugin implements SerialConnectionMa
350
350
  Log.d(TAG, "🔓 unlockPallet called");
351
351
 
352
352
  int address = call.getInt("address", 1);
353
- int pallet = call.getInt("pallet", 1);
354
- String color = call.getString("color", "FF0000");
353
+ // Soportar ambos nombres para compatibilidad
354
+ int pallet = call.hasOption("pallet") ? call.getInt("pallet", 0) : call.getInt("palletNumber", 0);
355
+ // Soportar ambos nombres para compatibilidad
356
+ String color = call.hasOption("ledColor") ? call.getString("ledColor", "green") : call.getString("color", "green");
355
357
 
356
358
  Log.d(TAG, String.format("Parameters - address: %d, pallet: %d, color: %s", address, pallet, color));
357
359
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonardojc/capacitor-ioboard",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A comprehensive Capacitor plugin for IOBoard devices with integrated serial communication and complete MTC3P08L protocol support including OTA updates",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",