

> [Wi-Fi Class Reference](https://obniz.github.io/obniz/obnizjs/classes/obnizcore.components.wifi.html)

wifi let you control Wi-Fi on obnizOS runnning device

## Scan

You can search for access points near your device.


Use　[obniz.wifi.scanWait()](https://obniz.github.io/obniz/obnizjs/classes/obnizcore.components.wifi.html#scanwait)　to get the name, macAddress and signal strength of the surrounding access points.


- Scan Interval: 30seconds
- Scan Method: Active 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}
]
```
