> For the complete documentation index, see [llms.txt](https://smartpossdk.gitbook.io/cloudpossdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartpossdk.gitbook.io/cloudpossdk/faq/tms-wizarview/network-control-in-agent.md).

# Network Control in Agent

### Prerequisite

* Ensure that the Wizarview agent version on the device is greater than 5.3.39 to use this feature.

### Steps to Control Network Usage

* Prepare the Broadcast Intent:
  * You will need to send a broadcast intent to control the network usage of the Wizarview agent.
  * The action for the intent should be set to: 'android.intent.action.NET\_USE\_CONTROL'.
* Set the Extra Value:
  * Along with the action, you need to include an extra value in the broadcast.
  * The extra value should have the name 'net\_use\_control\_flag'.
  * The value for this should be either 'enable' or 'disable', depending on whether you want to activate or deactivate the network usage.
* Enable

{% code overflow="wrap" lineNumbers="true" %}

```java
  Intent enableIntent = new Intent();
  enableIntent.putExtra("net_use_control_flag", "enable");
  enableIntent.setAction("android.intent.action.NET_USE_CONTROL");
  getApplicationContext().sendBroadcast(enableIntent);
```

{% endcode %}

* Disable

{% code overflow="wrap" lineNumbers="true" %}

```java
  Intent disableIntent = new Intent();
  disableIntent.putExtra("net_use_control_flag", "disable");
  disableIntent.setAction("android.intent.action.NET_USE_CONTROL");
  getApplicationContext().sendBroadcast(disableIntent);
```

{% endcode %}

Note:

* It's important to correctly implement this broadcast mechanism, as incorrect usage could lead to unintended behaviors in the Wizarview agent's network management.
* This feature is particularly useful for customers who need precise control over their device's network activities for efficiency or security reasons.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/tms-wizarview/network-control-in-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
