@leonardojc/capacitor-ioboard 2.0.10 → 2.0.11
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.
|
@@ -7,6 +7,7 @@ import com.getcapacitor.Plugin;
|
|
|
7
7
|
import com.getcapacitor.PluginCall;
|
|
8
8
|
import com.getcapacitor.PluginMethod;
|
|
9
9
|
import com.getcapacitor.annotation.CapacitorPlugin;
|
|
10
|
+
import org.json.JSONObject;
|
|
10
11
|
import java.util.List;
|
|
11
12
|
import java.util.ArrayList;
|
|
12
13
|
|
|
@@ -374,7 +375,8 @@ public class CapacitorIoboardPlugin extends Plugin implements SerialConnectionMa
|
|
|
374
375
|
|
|
375
376
|
for (int i = 0; i < actionsArray.length(); i++) {
|
|
376
377
|
try {
|
|
377
|
-
|
|
378
|
+
JSONObject actionJson = actionsArray.getJSONObject(i);
|
|
379
|
+
JSObject action = JSObject.fromJSONObject(actionJson);
|
|
378
380
|
|
|
379
381
|
int palletNumber = action.getInteger("palletNumber", 0);
|
|
380
382
|
boolean unlock = action.has("unlock") ? action.getBoolean("unlock") : true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leonardojc/capacitor-ioboard",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
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",
|