> 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/mip-1000-ip/novas-funcionalidades-do-mip-ip/buscas.md).

# Buscas

### Busca ativa e contínua no MIP IP

Comando para fazer a busca somente dos recursos do MIP IP de forma contínua ou somente dos IDs que estão ativos no MIP IP:

#### Tabela das novas Flags

| Descrição                          | Valor |
| ---------------------------------- | ----- |
| PROT\_FLAG\_BUSCA\_CONTINUA        | 0x27  |
| PROT\_FLAG\_BUSCA\_ATIVO           | 0x28  |
| PROT\_FLAG\_BUSCA\_CONTINUA\_ATIVO | 0x29  |

#### Buscar próximo recurso ativo no MIP IP

Ao enviar o comando de manutenir (usuário, tag, rf, template e face) com a Flag abaixo o MIP irá buscar o próximo ID ativo.

* **PROT\_FLAG\_BUSCA\_ATIVO (0x28):** no campo de dados colocar o ID inicial (4 bytes), se este for ativo o MIP retorna ele, senão responderá com o próximo ID ativo.

#### Buscar recursos de forma contínua no MIP IP

Ao enviar o comando de manutenir (usuário, tag, rf, template ou face) com a Flag abaixo o MIP irá responder de forma padrão ao comando de busca, de forma contínua os recursos, de acordo com o intervalo especificado.

* **PROT\_FLAG\_BUSCA\_CONTINUA (0x27):** no campo de dados colocar o ID inicial (4 bytes) e a quantidade de recursos que deseja solicitar (4 bytes), caso deseja que MIP IP envie todos deixar valor da quantidade em 0.

#### Buscar recursos ativos de forma contínua no MIP IP

Ao enviar o comando de manutenir (usuário, tag, rf, template e face) com a Flag abaixo o MIP irá responder, resposta padrão ao comando de busca, de forma contínua todos os recursos ativos.

* **PROT\_FLAG\_BUSCA\_CONTINUA\_ATIVO (0x29):** no campo de dados colocar o ID inicial (4 bytes) e a quantidade de recursos que deseja solicitar (4 bytes), caso deseja que MIP IP envie todos deixar valor da quantidade em 0.


---

# 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/mip-1000-ip/novas-funcionalidades-do-mip-ip/buscas.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.
