<commit_before># accesspoint

Manage wireless access points on Android 2.2 or later.

### Quick start

```java
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiApControl apControl = WifiApControl.getInstance(context);

boolean enabled = apControl.isEnabled();
int state = apControl.getState();

WifiConfiguration config = apControl.getConfiguration();
Inet4Address addr4 = apControl.getInet4Address();
Inet6Address addr6 = apControl.getInet6Address();

// These are cached and may no longer be connected, see
// apControl.getReachableClients(int, ReachableClientListener)
List<WifiApControl.Client> clients = apControl.getClients()

wifiManager.setWifiEnabled(false);
apControl.enable();

apControl.disable();
wifiManager.setWifiEnabled(true);
```

### Features

 * Enabling and disabling your AP
 * Configuring your AP via `WifiConfiguration`<commit_msg>Update README with dependency and import<commit_after># accesspoint

Manage wireless access points on Android 2.2 or later.

### Quick start

```gradle
repositories {
    jcenter()
}

dependencies {
    compile 'cc.mvdan.accesspoint:library:0.1.0'
}
```

```java
import cc.mvdan.accesspoint.WifiApControl;

WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiApControl apControl = WifiApControl.getInstance(context);

boolean enabled = apControl.isEnabled();
int state = apControl.getState();

WifiConfiguration config = apControl.getConfiguration();
Inet4Address addr4 = apControl.getInet4Address();
Inet6Address addr6 = apControl.getInet6Address();

// These are cached and may no longer be connected, see
// apControl.getReachableClients(int, ReachableClientListener)
List<WifiApControl.Client> clients = apControl.getClients()

wifiManager.setWifiEnabled(false);
apControl.enable();

apControl.disable();
wifiManager.setWifiEnabled(true);
```

### Features

 * Enabling and disabling your AP
 * Configuring your AP via `WifiConfiguration`
{'fraction_non_alphanumeric': 0.10488798370672098, 'fraction_numerical': 0.009674134419551934, 'mean_word_length': 6.528735632183908, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2419700', 'n_tokens_mistral': 605, 'n_tokens_neox': 591, 'n_words': 144}