
> [Wi-Fi Class リファレンス](https://obniz.github.io/obniz/obnizjs/classes/obnizcore.components.wifi.html)

wifiではobnizOSの動作するデバイスのWi-Fiを操作することができます。

## 検索

デバイス付近にあるアクセスポイントを検索できます。

[obniz.wifi.scanWait()](https://obniz.github.io/obniz/obnizjs/classes/obnizcore.components.wifi.html#scanwait)を利用することで周囲にあるアクセスポイントの名前、macAddress、電波強度を取得します。

- Scan時間: 30秒
- Scan方法: アクティブスキャン

```
console.log(await obniz.wifi.scanWait())
```

```
[
    {ssid: "testwifi1", macAddress: "280000000009", rssi: -41},
    {ssid: "testwifi2", macAddress: "280000000008", rssi: -59},
    {ssid: "testwifi3", macAddress: "280000000007", rssi: -82}
]
```
