Add files via upload

This commit is contained in:
langxiankui
2021-07-20 14:36:44 +08:00
committed by GitHub
commit 04e2b4680a
17 changed files with 486 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
var exec = require('cordova/exec');
var coolMethod = function () {};
coolMethod.readCard = function (success, error) {
exec(success, error, 'UHF', 'readCard', []);
}
coolMethod.inventoryCard = function (success, error) {
exec(success, error, 'UHF', 'inventoryCard', []);
}
coolMethod.stopInventoryCard = function (success, error) {
exec(success, error, 'UHF', 'stopInventoryCard', []);
}
coolMethod.searchCard = function (success, error) {
exec(success, error, 'UHF', 'searchCard', []);
}
coolMethod.writeCard = function (arg, success, error) {
exec(success, error, 'UHF', 'writeCard', [arg]);
}
coolMethod.setPower = function (arg, success, error) {
exec(success, error, 'UHF', 'setPower', [arg]);
}
coolMethod.startWork = function (success, error) {
exec(success, error, 'UHF', 'startWork', []);
}
coolMethod.endWork = function (success, error) {
exec(success, error, 'UHF', 'endWork', []);
}
coolMethod.selectCard = function (arg, success, error) {
exec(success, error, 'UHF', 'selectCard', [arg]);
}
module.exports = coolMethod;