method:
PosUtil.getWg26Status(long cardid);
PosUtil.getWg34Status(long cardid);
Parameters:
cardid: Decimal card number
PosUtil.sendSpecialWG(String cardNumBin)
Parameters:
Send custom Wigan signal(up to 64 bits)
cardNumBin: Binary string to send signal
Call Wiegand static method ,if the return value is 0 successfully means send success, if not 0 means send failed.
Receive Wiegand Data:
PosUtil posutil = new PosUtil(context);
posutil.registerBroadcastWiegandInput();//Register broadcast
posutil.getWiegandInput(new WiegandInputListener() {// Listen for Wigan input
@Override
public void wiegandInput(byte[] inputData) {
// TODO Auto-generated method stub
// Data entered by Wigan: inputData
String data = new String(inputData);
}
});
posutil.unRegisterBroadcastWiegandInput();//At the end of the call, the broadcast is unregistered