> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/linha-android/peripheral/wiegand.md).

# Wiegand

Interface Principal de CallBack: `LamyPeripheralManager`

Path: `com.lamy.peripheral.sdk.general.LamyPeripheralManager`

```java
// Construction method, single example
public static LamyPeripheralManager getInstance()

/**
* Configuring Wiegand Settings
*
* @param mode Mode 0 = Enter 1 = Output PulseWith Pulse Width PulseInterval
Pulse Interval
* Pulse width, unit: us; the value range is related to and might vary with
the connected external device.
* Pulse interval, unit: us; the value range is related to and might vary
with the connected external device.
* Access Control Devices:
The range of pulse width is 20-200, and pulse interval is 200-5000
The interval must be N times more than width
* Width must be a multiple of 10.
*Pulse width is 100 us by default, and the range is from 20 to 200. If the
number configured is not a multiple of 10, there is a prompt that reads: Please
enter a number that is between 20 and 200, and also a multiple of 10
*Pulse interval: 200-5000, and it is a multiple of pulse width. If the
number configured is not a multiple, there is a prompt that reads: Please enter
a number that is between 200 and 5000, and also a multiple of pulse width.,
* @return =0 means success, means failure
*/
public boolean wgConfig(int mode, long pulseWidth, long pulseInterval)

/**
* Send Wiegand data
* @param weigenStr Wiegand data
* @return =0 means success, means failure
*/
public boolean sendWeigenData(String weigenStr)

/**
* Obtain password through Wiegand
* @return Data obtained through Wiegand
*/
public String readPwdByWeiGen()

/**
* Set Card Status
After the system decides whether the card number/password is legal,
callback this interface to notify the card reader whether the card/password read
this time is valid
*
* @param validate true=valid false=invalid
* @return 0 means success, other means failure
*/
public boolean setCardStatus(boolean validate)

/**
* Add Wiegand Listening
* @param listener listening added
* Path:com.lamy.peripheral.sdk.ResultCallBackListener
* @return true Added successfully
*/
public boolean addWeigenListener(ResultCallBackListener listener)

/**
* Cancel Wiegand Listening
* @return true Canceled successfully
*/
public boolean removeWeigenListener(ResultCallBackListener listener)

/**
* Wiegand Data Listening
*/
public interface ResultCallBackListener {
void onNotify(String str);

}

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/linha-android/peripheral/wiegand.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
